[TYPO3] How to mark external links and protected pages in menus with TS templates
Ricardo Pereira
ricardo at tdwg.org
Mon Oct 9 15:47:52 CEST 2006
Ricardo Pereira wrote:
>> Your menu question is, as far as I remember, very well described on the
>> testsite. And has been asked here many times, too ;-)
>>
Just for the record, here's a solution to the problem of marking with an
icon all external links in menu:
temp.externalLinkCase = CASE
temp.externalLinkCase {
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/template/main/images/external_link_new_window.gif" />
3.stdWrap.htmlSpecialChars = 1
}
temp.menu_1 = HMENU
temp.menu_1.1 = TMENU
temp.menu_1.1 {
expAll = 1
NO.allWrap = <div class="button">|</div>
NO.stdWrap.cObject < temp.externalLinkCase
# ...
# rest of TS configuration omitted
}
Cheers,
Ricardo Pereira
> _______________________________________________
> 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