[TYPO3-english] Modify Multiple Filelinks

John Fox fox at johnfoxstudios.com
Thu Jul 30 18:01:44 CEST 2009


Hi,

I have a sidebar on the front-end where I am displaying 2 filelinks to
³protected² content- it¹s ³protected² through SalesForce, but that doesn¹t
really matter here... Anyway, I am using the tt_content.uploads.20.layout to
modify the display of the filelinks and change the url.  The TypoScript for
the tt_content.uploads.20.layout works but I need slightly different code
for each filelink. 

So my question is, how do I associate different tt_content.uploads.20.layout
code with each filelink?  Or am I going at this wrong?

Here is my TypoScript:

tt_content.uploads.20.layout{
        global=###FILE###
        file=<div class='sidebarDocMainWebinar'><div
class='sidebarDocThumb'><a
href='/index.php?id=103&webinarID=###WEBINARID###&no_cache=1'><img
src='fileadmin/template/main/images/webinars/thumb/###WEBINARID###.jpg'
alt='###TITLE###' height='30' width='30' border='0'></div><div
class='sidebarDocTitleWebinar'>###TITLE###</a></div></div>
userMarker.dam.WEBINARID=uid
}
 
 
#add webinars filelinks from RIGHT
page.10.subparts.webinars < styles.content.getRight
page.10.subparts.webinars.wrap =  <br /><div class="sideBar"><div
class="sidebarHeader"><div
class="sidebarHeaderText">Webinars</div></div><div class="sideBarContent"> |
</div></div>
 
 
#add collateral filelinks from LEFT
page.10.subparts.whitepapers < styles.content.getLeft
page.10.subparts.whitepapers.wrap =  <br /><div class="sideBar"><div
class="sidebarHeader"><div
class="sidebarHeaderText">Collateral</div></div><div class="sideBarContent">
| </div></div>


Any help or advice would be very much appreciated!

Thanks,
John


More information about the TYPO3-english mailing list