[Typo3] Bredcrumbs $ tt_news

Oliver oliver at liquidlight.co.uk
Thu Oct 13 14:26:01 CEST 2005


Hi Patxi,

With mininews I use the following TS to get the article title to display 
in the breadcrumb:

lib.breadcrumb=COA
lib.breadcrumb.wrap = <p><a href="/">Home</a>&nbsp;&rsaquo;&nbsp; | </p>
lib.breadcrumb.10 = HMENU
lib.breadcrumb.10.special = rootline
lib.breadcrumb.10.special.range = 2|-1
lib.breadcrumb.10.1 = TMENU
lib.breadcrumb.10.1.noBlur = 1
lib.breadcrumb.10.1.CUR = 1
lib.breadcrumb.10.1.NO {
    stdWrap.htmlSpecialChars = 1
    stdWrap.field = title
    ATagTitle.field = nav_title // title
    linkWrap = ||*| &nbsp;&rsaquo;&nbsp; |*|
}
[globalVar = GP:tx_mininews_pi1|showUid > 0]
    lib.breadcrumb.10.1.CUR < lib.breadcrumb.1.NO
[else]
    lib.breadcrumb.10.1.CUR {
       stdWrap.htmlSpecialChars = 1
       stdWrap.field = title
       linkWrap = ||*| &nbsp;&rsaquo;&nbsp; |*|
       doNotLinkIt = 1
    }
[end]

[globalVar = GP:tx_mininews_pi1|showUid > 0]
lib.breadcrumb.20 = RECORDS
lib.breadcrumb.20 {
    dontCheckPid = 1
    tables = tx_mininews_news
    source.data = GPvar:tx_mininews_pi1 | showUid
    conf.tx_mininews_news = TEXT
    conf.tx_mininews_news.field = title
    wrap = &nbsp;&rsaquo;&nbsp; |
}
[end]

So maybe try replacing your source.data = GP:tt_news|tt_news with 
source.data = GPvar:tt_news|tt_news will help

Hope this helps,

Oliver

Patxi Goitia wrote:
> Hi Francois,
> 
> I've tried this:
> 
> temp.breadcrumbs = COA
> temp.breadcrumbs.1 = HMENU
> temp.breadcrumbs.1.special = rootline
> temp.breadcrumbs.1.special.range = 0|-1
> 
> temp.breadcrumbs.1.1 = TMENU
> temp.breadcrumbs.1.1 {
> NO.linkWrap = <span class="breadcrumbs"> | </span>&nbsp;&#187;&nbsp;
> }
> 
> temp.breadcrumbs.2 = RECORDS
> temp.breadcrumbs.2 {
> dontCheckPid = 1
> tables = tt_news
> source.data = GP:tt_news|tt_news
> conf.tt_news = TEXT
> conf.tt_news.field = title
> wrap = <strong> | </strong>
> }
> 
> It obviously does something, because the page name of page hosting news 
> plugin doesn't appear in breacrumb, but that is, now I have no news page 
> nor title of news...
> 
> is my code inside *temp.breadcrumbs.2 {* wrong ?
> 
> TIA
> 
> Francois Suter wrote:
> 
>> Hi,
>>
>> This should work with a COA.
>>
>>> temp.breadcrumbs= HMENU
>>> temp.breadcrumbs.special = rootline
>>> temp.breadcrumbs.special.range = 0|-1
>>> temp.breadcrumbs.1 = TMENU
>>> temp.breadcrumbs.1 {
>>> NO.linkWrap = <span class="breadcrumbs"> | </span>&nbsp;&#187;&nbsp;
>>> }
>>
>>
>>
>> temp.breadcrumbs = COA
>> temp.breadcrumbs.1 = HMENU
>> temp.breadcrumbs.1.special = rootline
>> ....
>> temp.breadcrumbs.1.1 = TMENU
>> ....
>>
>>> [globalVar = GP:tt_news>0]
>>> temp.breadcrumbs = RECORDS
>>> temp.breadcrumbs {
>>> dontCheckPid = 1
>>> tables = tt_news
>>> source = 21
>>> conf.tt_news = TEXT
>>> conf.tt_news.field = title
>>> wrap = <strong> | </strong>
>>> }
>>
>>
>>
>> temp.breadcrumbs.2 = RECORDS
>> temp.breadcrumbs.2 {
>> ....
>> }
>>
>> HTH
>>
>> François Suter
>> Directeur technique
>> -----------------------------------------------------
>> Cobweb Development Sàrl
>> www.cobweb.ch
>> -----------------------------------------------------



More information about the TYPO3-english mailing list