fnagel / generic-gallery

TYPO3 extension: Generic Gallery - One gallery to rule them all!
https://extensions.typo3.org/extension/generic_gallery/
GNU General Public License v3.0
7 stars 12 forks source link

Overwrite FAL metadata from file reference #2

Closed nabossha closed 9 years ago

nabossha commented 9 years ago

Is there a way to access the metadata of FAL-items (i.e. title, description) and get it into the template? i am currently struggling to achieve this. Would be a very useful addition to this ext!

fnagel commented 9 years ago

That's already possible and one of the main features of this extension!

Documentation: https://github.com/fnagel/generic-gallery/blob/master/Documentation/Configuration/Template/Index.rst#fal-metadata

Example code: https://github.com/fnagel/generic-gallery/blob/master/Resources/Private/Partials/GalleryItem/Copyright.html

nabossha commented 9 years ago

thank you for these - i should have written my question more specifically because what you write is absolutely correct but where i'm struggling is: When metadata like title or description are overwritten in the local record (using "multiple files" or "file collection" in the plugin) these values are not available in any of my {item} porperties. is there a way to access these "local" values (which is what most editors are using...). when using normal tt_content image elements the local title/description also override FAL-metadata.

fnagel commented 9 years ago

I can confirm this isssue. Working on a fix...

fnagel commented 9 years ago

I've just pushed a fix for this issue. Please test and give feedback!

nabossha commented 9 years ago

thanks a lot for this fix - it's now working as expected using TYPO3 6.2.15

fnagel commented 9 years ago

Sure, glad it worked and thanks for the report! I will wait until next week for TYPO3 7.5, do some testing and than pushing a new version to TER.

Thanks a lot for your donation! Really appreciated!