Provide copyright infos of pictures
This is a small example ts from @mabolek
lib.footer.copyright = TEXT
lib.footer.copyright {
data = date:U
strftime = %Y
noTrimWrap= |<p class="copyright"> © | {$themes.configuration.footer.copyright}</p>|
append = CONTENT
append {
table = tt_content
select {
selectFields = sys_file_metadata.*, tt_content.uid as contentuid
pidInList = this
orderBy = tt_content.sorting
join = sys_file_reference ON sys_file_reference.uid_foreign = tt_content.uid JOIN sys_file_metadata ON sys_file_reference.uid_local = sys_file_metadata.file
where = sys_file_reference.tablenames = 'tt_content' AND sys_file_reference.table_local = 'sys_file' AND sys_file_metadata.copyright != '' AND sys_file_reference.deleted = 0 AND sys_file_reference.hidden = 0
groupBy = sys_file_reference.uid_local
}
renderObj = COA
renderObj {
10 = IMAGE
10 {
file {
import.field = file
height = 20
}
}
20 = TEXT
20 {
field = copyright
noTrimWrap = | ©| |
htmlSpecialChars = 1
}
stdWrap.required = 1
stdWrap.typolink {
parameter.field = contentuid
parameter.wrap = #c|
}
stdWrap.wrap = <span>|</span>
}
stdWrap.required = 1
stdWrap.noTrimWrap = |<p class="copyright">Photo Copyright: |</p>|
}
}
We could provide copyright information of the used photos
Todos:
- decide if needed
- Define a design