Comments (3)
Did you enter the same value inside the files title and copyright? Then of course you get the same output.
title is the title of the image and copyright should be the copyright.
from tgm_copyright.
No, the file did not have a title.
This will output:
Copyright (© Copyright) (<f:if condition="{copyright.title}"> and <f:if condition="{copyright.copyright}">)
I changed the template to output the filename (and link to the image file because otherwise not every file was linked) instead:
<f:layout name="Default" />
<f:section name="main">
<f:if condition="{copyrights}">
<ul>
<f:for each="{copyrights}" as="copyright" iteration="iter">
<li>
<f:if condition="{copyright.title}">
<f:then><f:link.page pageUid="{f:uri.image(src:copyright.originalResource.originalFile.properties.uid)}" target="_blank">{copyright.originalResource.properties.name}</f:link.page></f:then>
<f:else><f:link.page pageUid="{f:uri.image(src:copyright.uid,treatIdAsReference:1)}" target="_blank">{copyright.originalResource.properties.name}</f:link.page></f:else>
</f:if>
<f:if condition="{copyright.copyright}">
<f:then>
(© {copyright.copyright})
</f:then>
<f:else>
(© {copyright.originalResource.properties.copyright})
</f:else>
</f:if>
</li>
</f:for>
</ul>
</f:if>
</f:section>
from tgm_copyright.
What ever I do, I don't get the copyright when calling copyright.title. The cause of missing links was that also images of hidden or deleted pages were included, which has been fixed now. I'll try to upload a new version to TER today.
from tgm_copyright.
Related Issues (20)
- composer support HOT 2
- Language Handling for Image sitemap? HOT 13
- [FEATURE] Add optional sorting by reference title
- Generated image sitemap returns images that are related to disabled/hidden tt_content records HOT 1
- Version for LTS 10 HOT 2
- Data truncated for column 'copyright' at row 1 HOT 1
- remove dependency to filemetadata? HOT 5
- Tag version in Packagist HOT 3
- Extension can not be loaded with composer HOT 2
- Sitemap invalid for Umlaut-Domain (IDN) HOT 1
- [BUG] Incorrect image paths in sitemap due to domain concatenate HOT 4
- [BUG] invalid sitemap urls on multi site instances HOT 6
- UnexpectedValueException if settings.displayDuplicateImages true - Version 3.1.1 and Typo3 10 HOT 2
- Info for the manual
- Featute: Only Picture information for the current page HOT 3
- [QUESTION] is it possible to output custom (image) fields created with ext:mask? HOT 1
- Selection option for the correct license type HOT 2
- Exclude images on pages with NOINDEX in XML image sitemap
- SQL Syntax Error in sys_file_reference Query HOT 1
- PHP Warning: Undefined array key "tgm_copyright"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tgm_copyright.