[Typo3] External URL in menu
Christopher
bedlamhotel at gmail.com
Thu Nov 10 16:45:17 CET 2005
Hi,
On 10/11/05, Claudio <claudio.strizzolo at ru.bbishts.infn.it> wrote:
> 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
>
What happens if you add:
3.typolink.parameter.dataWrap = http://{field:url}
?
Untested, should work though I think.
-Christopher
More information about the TYPO3-english
mailing list