Flattened gallery in tx_news
Hello,
I'm looking for solution to display flattened gallery in tx_news single view based on selected parent folder, for now we need to select every single folder with images to display thumbnails with link to gallery, I would like to automate this, what I want to do is select only main folder (parent) which contains many subfolders, so I think option like "include subfolder" should do the job from editor view. In standard way when we inserting the plugin to the page this is called Flattened gallery.
Frans do you think that could be done?
Comments (7)
-
repo owner -
reporter Thank you for an answer, i have tested your code, but unfortunately this doesn't work, because parentAlbum has no albums field, so the second each returns nothing. Is there possibility to know that selected album have subfolders?
-
if the selected (parent)album has sub-albums these are available through
{album.albums}
. This is indeed no property of an album but Fluid calls thegetAlbums()
method of theMediaAlbum
class. -
reporter it would be nice if it worked, but I was unable to achieve this
-
Yes it would be really nice, if the would work.
-
Would be cool if someone could sponsor me 2 hours of work to get this done :)
-
repo owner - changed status to closed
- Log in to comment
With some adjustments to your news template displaying the sub album's should already be possible. Adding the switch so editors could enable/disable needs some programming.