Hallo,
ich versuche gerade eine [globalVar = GP:L = 1] - Weiche für die englische Sprache zu bauen, leider funktioniert das nicht, es wird immer die Bedingung ausgegeben.
Weiß jemand wie man das Problem lösen kann?
Mein Code:
Code:# For the breadcrumb cObject we use a HMENU of the type 'rootline' menu.breadcrumb = COA menu.breadcrumb { 10 = HMENU 10 { # Select HMENU type 'special.rootline' special = rootline # Traverse the pagetree starting at the rootpage (0) and ending at the current page (-1) special.range = 1|-1 # Pages which are excluded from the regular menus should still be shown in the breadcrumb includeNotInMenu = 1 # This menu has only 1 level since this is a rootline-menu 1 = TMENU 1 { #Text vor dem Breadcrumbmenü wrap = Sie sind hier: <a href="startseite/">Startseite</a> » | # Remove the ancient onfocus="blurLink(this);" from link tags noBlur = 1 # Append spaces and >> to normal linked breadcrumb items NO.allWrap = | » NO.stdWrap.htmlSpecialChars = 1 NO.doNotLinkIt = 1 } } } # This condition checks whether a news article will be shown in single view [globalVar = GP:tx_ttnews|tt_news > 0] && [globalVar = TSFE:id = {$plugin.tt_news.singlePid}] menu.breadcrumb { # Render the current page as the normal state (linked) because we'll append the title of the news article 10.1 { CUR = 1 CUR < .NO } # Append the title of the news item. Using this example, the breadcrumb can be exented with # any other thinkable kind of data and logic 20 = RECORDS 20 { dontCheckPid = 1 tables = tt_news source.data = GP:tx_ttnews|tt_news source.intval = 1 conf.tt_news = TEXT conf.tt_news.field = title wrap = <span>|</span> } } # Else configure the breadcrumb for normal cases when no news article is shown [else] menu.breadcrumb { 10.1 { # Add alternative, unlinked configuration for current page, which is always the last item in # the breadcrumb CUR = 1 CUR.stdWrap.htmlSpecialChars = 1 CUR.allWrap = <span>|</span> # Do not wrap a link around this item CUR.doNotLinkIt = 1 } } [global]
Mein Versuch:
Vielen Dank!Code:[globalVar = GP:L = 1] # This menu has only 1 level since this is a rootline-menu 1 = TMENU 1 { #Text vor dem Breadcrumbmenü wrap = Sie sind hier*: <a href="startseite/">Startseite</a> » | # Remove the ancient onfocus="blurLink(this);" from link tags noBlur = 1 # Append spaces and >> to normal linked breadcrumb items NO.allWrap = | » NO.stdWrap.htmlSpecialChars = 1 NO.doNotLinkIt = 1 } [global]
Geändert von crz (27.07.2012 um 12:29 Uhr)
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen