Make dexterity content visible in album view TTW

I have a 'person' dexterity content type that I have created TTW, that also leverages the LeadIn image field. Since my Person content type is folderish, and contains the LeadIn fields, I can use it's album view as a base display for each content item--and I like it. However, when I try to put all of my person content items in a folder, and visualize that folder in album view--nothing show up.
I know that I can likely add my person content item to the album view template--but I cannot find where that is, and my TAL skills are limited. I am sure this is a relatively easy fix...help appreciated.
Thanks,
~mc

I would like to add that I too want the same thing. It seems that the Album View was set up for images only, however.

As for bringing the desired option to fruition, it may be something as simple as changing the conditional statement for what goes into the Album View in the first place. Right now, I suspect that it searches for image objects only. Changing the condition to an "image OR dexterity-with-lead-image-field" might do the trick. Have to look at the source code, but this doesn't sound overly difficult and definitely useful.

1 Like

It looks like it album_view.py only looks for images:

        result['images'] = container.getFolderContents(
            {'portal_type': ('Image',)}, full_objects=True)

You can probably just add your own content type.

A better approach could be to catalog 'has leadimage' and just search for that (?)

I would think that looking for "has leadimage' would be a better approach. Guess I need to get on the developer list and submit something.

Thanks.

you can use jbot to override the (py) template... just add your own content type should probably work ( 'Image', 'MyType' )

Is that compatible with Plone 5? https://training.plone.org/5/theming/collective-jbot.html

https://pypi.python.org/pypi/z3c.jbot/0.7.2 is

(so you need to add them to something (your theme, maybe)

Was that code example for Plone 4?

I am not at work now, but I think it was for Plone 5