[TYPO3-media] Readout Title and Description

Thomas Gr thomas.grass at in.tum.de
Mon Jan 20 13:45:17 CET 2014


Hello Community,
i found a view snippets to readout an image of the Media-Field. The one i use now is:

TOPPIC = COA
TOPPIC {
    1 = COA
    1 {
        stdWrap.required=1
        stdWrap.outerWrap.cObject = TEXT
        stdWrap.outerWrap.cObject.value = <li><div class="divTopPicture" style="background-image: url( | );"><div class="divTopInfoContainer"></div><h1>Title of the Image</h1><h2>Description of the Image</h2></div></li>
        2 = IMG_RESOURCE
        2 {
            file { 
                treatIdAsReference = 1
                import.data = levelmedia:-1
                import = uploads/media/
                import.listNum = 0
                width = 1016c
                height = 300c
            }
            
        }           
    }
    2 < .1
    2.2.file.import.listNum = 1
    3 < .1
    3.2.file.import.listNum = 2
    4 < .1
    4.2.file.import.listNum = 3
}

What is the right way to readout the title and the description of the image and set it into the h1 and h2? I looked a bit around and did not found the right way to handle this case. Is there an easy way or a ready snippet?


More information about the TYPO3-project-media mailing list