Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T t3olayout
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 3
    • Merge requests 3
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • services
  • t3o sites
  • common
  • t3olayout
  • Issues
  • #322

Closed
Open
Created Oct 13, 2017 by Stefan Busemann@stefan.busemannMaintainer

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"> &copy; | {$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 = | &copy;| &nbsp;|
                htmlSpecialChars = 1
            }

            stdWrap.required = 1
            stdWrap.typolink {
                parameter.field = contentuid
                parameter.wrap = #c|
            }
            stdWrap.wrap = <span>|</span> &nbsp;
        }

        stdWrap.required = 1
        stdWrap.noTrimWrap = |<p class="copyright">Photo Copyright:&nbsp; |</p>|
    }
}

We could provide copyright information of the used photos

Todos:

  • decide if needed
  • Define a design
Assignee
Assign to
Time tracking