[TYPO3-templavoila] How may I render the HTML of my links? (ml_links related)

Publicité pub at perseguers.ch
Fri Oct 19 09:46:11 CEST 2007


I know there was already such a topic months ago but the answer was not given and as I'm stuck with the same problem, I think it would be great to close it properly.

I installed extension ml_links on my website, along with TemplaVoila.

ml_links is used to to automatically prepend an icon to links, according to their "type" and is instantiated with TS:

tt_content.text.20.parseFunc.tags.link.postUserFunc {
  #definition for external links here
  external {
    10.image = typo3conf/ext/ml_links/icon_globe.gif
    10.image.link = 0
    20.linkTag = 1

  #definition for mailto links here
  mailto {
    10.image = typo3conf/ext/ml_links/icon_mailto.gif
    10.image.link = 0
    20.linkTag = 1

  #definition for filelinks with filetype “pdf”
  pdf {
    10.image = typo3conf/ext/ml_links/icon_pdf.gif
    10.image.link = 0
    20.linkTag = 1
    30.filesize = 1

If I disable TemplaVoila, it works great but as soon as I activate it, my links get no icon anymore. This is a "known problem" of ml_links as the author said in its extension's documentation:

> If you install extensions that uses the typoscript settings
> “userFunc” and / or “postUserFunc” of the property “link” or
> “typolist”  ml_links will not work properly

I contacted the ml_links author but it didn't help me much:

> I think that your installation is using an other parseFunc to build the links,
> e.g. 'lib.parseFunc' or 'lib.parseFunc_RTE', try to set the ml_links configuration
> at these locations. I think it would be easier to store the ml_links configuration
> in e.g. 'plugin.tx_mllinks_pi1' and to copy it to the other locations.

My configuration for TemplaVoila is the one from the documentation:

page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

I tried to use "hooks" in TV with renderElement but it seems I do not get any chance to take control over the content output.

How may I do this? It's not only a ml_links problem but a general question on how I may hook into TV rendering control.

Xavier Perseguers

More information about the TYPO3-project-templavoila mailing list