[TYPO3-ttnews] Add title to breadcrumb trail?

Francois Suter fsuter at cobweb.ch
Fri Jun 6 17:00:48 CEST 2008


Hi,

> lib.breadcrumbs.20 = RECORDS
> lib.breadcrumbs.20 {
>     dontCheckPid = 1
>     tables = tt_news
>     source.data = GPvar:tx_ttnews|tt_news
>     conf.tt_news = TEXT
>     conf.tt_news.field = title
>     conf.tt_news.required = 1
>     conf.tt_news.wrap =  > |
> }

Mind that if you use substitutePageTitle = 1 in tt_news, the title of 
the news item is already loaded in the TSFE (in 
$GLOBALS['TSFE']->page['title']). So while the above method is more 
generic, in this particular case you could just use:

lib.breadcrumbs.20 = TEXT
lib.breadcrumbs.20.data = TSFE:page|title

and save yourself an additional DB access.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-project-tt-news mailing list