[Typo3] External URL in menu

Martin Kindler kindlerm at arcor.de
Thu Nov 10 14:48:58 CET 2005


Claudio,

I had a similar problem a few weeks ago. I wanted to add dynamically
parameters to the (real) URL of an external URL page.
I found the following mailing list entry helpful, especially the answer by
Marlies:
http://typo3.com/documentation/mailing-lists/english-main-list-archive/threa
d/56886/?tx_maillisttofaq_pi1%5Bmode%5D=1&tx_maillisttofaq_pi1%5Bsword%5D=Ex
ternal%20URL&tx_maillisttofaq_pi1%5Banswered_only%5D=0&tx_maillisttofaq_pi1%
5Bpointer%5D=1

She gives a solution to add any wrapping to a menu item. The bad point is
that her solution only works for complete menus. Therefore I had to split my
menu in several parts, but it works.

Martin

> -----Ursprüngliche Nachricht-----
> Von: typo3-english-bounces at lists.netfielders.de 
> [mailto:typo3-english-bounces at lists.netfielders.de] Im 
> Auftrag von Claudio
> Gesendet: Donnerstag, 10. November 2005 14:23
> An: typo3-english at lists.netfielders.de
> Betreff: Re: [Typo3] External URL in menu
> 
> 
> I got some working code to display an icon in case a menu 
> link is actually an external URL page. I started from an 
> example that I found in the archive of this mailing list. 
> Here it is:
> 
> NO {
>   stdWrap.cObject = CASE
>   stdWrap.cObject {
>     key.field = doktype
>     default = TEXT
>     default.field = title
>     default.typolink.parameter.data = field:uid
>     default.typolink.ATagBeforeWrap=1
>     default.typolink.wrap=|
> 
>     3 < .default
>     3.typolink.ATagBeforeWrap=1
>     3.typolink.wrap = |<img src="/fileadmin/images/extlink.gif"
>     alt="External URL" /> 3.stdWrap.htmlSpecialChars = 1
>   }
>   doNotLinkIt = 1
>   subst_elementUid = 1
>   wrapItemAndSub = <li class="menu-l2-no">|</li>
> } 
> 
> This does not make me completely happy, because I'd have 
> preferred a direct link to the final external URL, as I said 
> in my first message. 
> But, at least, it works.
> 
> Claudio
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 





More information about the TYPO3-english mailing list