[TYPO3-english] tt_news title instead of page title in the breadcrumb menu
Philipp Holdener
philipp.holdener at me.com
Sat May 21 13:31:30 CEST 2011
Am 21.05.11 11:18, schrieb horace grant:
> hi,
>
> i use this typoscript snippet for my breadcrumbs menu:
>
>
>
> marks.BREADCRUMBS = COA
> marks.BREADCRUMBS {
> 10 = HMENU
> 10.wrap =<div id="breadcrumbs"> |
> 10 {
> special = rootline
> special.range = range = 1|-2
> includeNotInMenu = 1
> 1 = TMENU
> 1.NO = 1
> 1.NO.stdWrap.field = nav_title
> 1.NO.stdWrap.ifEmpty.field = title
> 1.NO.stdWrap.htmlSpecialChars = 1
> 1.NO.allWrap = | > |*| | > |*| |
> }
> 20 = TEXT
> 20.data = TSFE:page|title
> 20.htmlSpecialChars = 1
> 20.wrap = > <span class="active">|</span>
> 30 = TEXT
> 30.value =</div>
> }
>
>
>
> isn't TSFE:page|title supposed to output the tt_news title instead of
> the page title if i am on the tt_news single view? it doesn't work
> though. i always get the page title. what could be the reason for
> this?
>
> (the strange thing is, that if i use the same method for outputting
> the<title></title> tag, it works correctly. it displays the tt_news
> title.)
>
Hi
I'm using this code for that:
lib.pfad = COA
lib.pfad.wrap = <ul><li><a href="/" title="Home">Home</a></li>|</ul>
lib.pfad.10 = HMENU
lib.pfad.10.special = rootline
lib.pfad.10.special.range = 1|-1
lib.pfad.10.1 = TMENU
lib.pfad.10.1.noBlur = 1
lib.pfad.10.1 {
NO.allWrap = <li>|</li>
NO.ATagTitle.field = subtitle
NO.ATagTitle.ifEmpty.field = title
CUR = 1
CUR.doNotLinkIt = 1
CUR.allWrap = <li>|</li>
}
lib.pfad.20 = RECORDS
lib.pfad.20 {
dontCheckPid = 1
tables = tt_news
source.data = GPvar:tx_ttnews|tt_news
conf.tt_news = TEXT
conf.tt_news.field = title
wrap = <li>|</li>
}
Greetings
Philipp
More information about the TYPO3-english
mailing list