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

Xavier Perseguers [typo3] pub at perseguers.ch
Mon Oct 22 11:58:09 CEST 2007


I there,

The author sent me a new version of this extension and it now works out-of-the-box:

> I've attached an other version of the ml_links extension, this extension is almost
> identical to your version. But I've added some default configuration, the plugin is
> now used in this cases:
>
> - tt_content.text.20.parseFunc.tags.link
> - tt_content.text.20.parseFunc.tags.typolist.default.parseFunc.tags.link
> - lib.parseFunc.tags.link
> - lib.parseFunc_RTE.tags.link
>
> The configuration has changed also, it must now be done with 'plugin.tx_mllinks_pi1'. 

Xavier Perseguers


----- Original Message -----
From: "Xavier Perseguers" <pub at perseguers.ch>
To: typo3-project-templavoila at lists.netfielders.de
Sent: Friday, October 19, 2007 9:46:11 AM (GMT+0100) Europe/Berlin
Subject: [TYPO3-templavoila] How may I render the HTML of my links? (ml_links related)

Hello,

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
_______________________________________________
TYPO3-project-templavoila mailing list
TYPO3-project-templavoila at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoila


More information about the TYPO3-project-templavoila mailing list