[TYPO3-english] Target page title as link/image title

Christian Weiske cweiske at cweiske.de
Sun Mar 25 12:41:52 CEST 2012


Hi,


I've made an Templavoila FCE in which the use may select a DAM image and
a page to link to.

The generated HTML is a link to the selected page with the image
inside. Now I'd like to use the title of the linked page (the target
page) as image title, or at least as link title.

How can I do that?


My current TypoScript is as follows:

------
10 = IMAGE
10.file {
    import.cObject = USER
    import.cObject {
        refTable = {$table}
        refField = field_image
        userFunc = tx_damtvc_tsfe->fetchFileList
    }
    XY = 200,100
    width = 200c
    height = 100c
}
10.altText.data = field : altText // field : txdam_alt_text
10.titleText.data = field : titleText // field : txdam_title

10.stdWrap.typolink {
    parameter.field = field_link
}
------

-- 
Regards,
Christian Weiske


More information about the TYPO3-english mailing list