[Typo3-dev] Changing the link layout

Andreas Schwarzkopf schwarzkopf.no.spam at artplan21.de
Fri Sep 2 16:26:53 CEST 2005


Hi Markus,

Markus Friedrich schrieb:

> So, to clarify why I am trying to write a new extension:
> - My extension should be able to specify different Icons for different file
> types. (e.g. if the link points to a pdf, there should be a pdf icon) The
> filetypes are fully customizable.
> - The extension is able to show the filesize of the linked file.

it is exactly what the cObject filelink does, check the 
styles.content.uploads part in your static template

> 
> As described, the problem I have at the moment is that I can place the
> image or filesize only BEFORE the link and not AFTER.  How can I do this?

with stdWrap properties you can do anything you like on this purpose

> 
> At the moment I see two possibilities  
> - using the wrap function with a variable value
> - replacing the typolink function with an own function

As I already wrote, the simpliest and most flexible way is to use the 
normal TypoScript - stdWrap, filelink, typolink or whatever.

grtx

Andreas




More information about the TYPO3-dev mailing list