[TYPO3-ttnews] Article title in the rootline (pagepath)

Maelvon user at exemple.net
Thu Apr 13 17:19:56 CEST 2006


  le 21/03/2006 15:36 :
> I have a pagepath generated on the website that I'm building.
> (Level 1 > Level 2 > Level 3 > Level 4)
> 
> --------------------------- CODE ----------------------------
> subparts.PATH.1 = HMENU
> subparts.PATH.1.special = rootline
> subparts.PATH.1.special.range = 1|-1
> subparts.PATH.1.1 = TMENU
> subparts.PATH.1.1 {
>    NO.allWrap = |  >  |*|  |  >  |*| |
>    CUR < .NO
>    CUR = 1
>    CUR {
>      doNotLinkIt = 1
>      linkWrap = |
>     }
> }
> -------------------------------------------------------------
> 
> On the page that renders a single news record I would like to have the 
> article title in the pagepath:
> Level 1 > Level 2 > Level 3 > [Article title]
> 
> Does anyone know a solution to this?
> 
> Thank you in advance!
> 
> 
> Tomas Mrozek

Hello,

That's the way I'd made a similar thing...

If you found an other way, I'll be happy to have your feedback !

Thanks,

Maelvon

[-------- begin TS code ----------
# ************************
# PATH MENU -> ROOTLINE
# ************************

temp.pathMenu=COA
temp.pathMenu.wrap = <a href="index.php">Home</a>&nbsp;&rsaquo;&nbsp; |
temp.pathMenu.10 = HMENU
temp.pathMenu.10.special = rootline
temp.pathMenu.10.special.range = 0|-1

temp.pathMenu.10.1 = TMENU
temp.pathMenu.10.1.noBlur = 1
temp.pathMenu.10.1.CUR = 1

temp.pathMenu.10.1.NO {
     stdWrap.htmlSpecialChars = 1
     stdWrap.field = title
     ATagTitle.field = nav_title
     # Separation between the titles ">"
     linkWrap = ||*| &nbsp;&rsaquo;&nbsp; |*|
}

[globalVar = GP:tx_ttnews|tt_news > 0
     temp.pathMenu.10.1.CUR < temp.pathMenu.10.1.NO
[else]
     temp.pathMenu.10.1.CUR {
        stdWrap.htmlSpecialChars = 1
        stdWrap.field = title
        linkWrap = ||*| &nbsp;&rsaquo;&nbsp; |*|
        doNotLinkIt = 1
     }
[end]

# (with tt_news) we add the news title to the Rootline
[globalVar = GP:tx_ttnews|tt_news > 0]
     temp.pathMenu.20 = RECORDS
     temp.pathMenu.20 {
         dontCheckPid = 1
         tables = tt_news
         source.data = GPvar:tx_ttnews|tt_news
         conf.tt_news = TEXT
         conf.tt_news.field = title
         wrap = &nbsp;&rsaquo;&nbsp; |
     }
[end]
-------- end TS code ----------]



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