|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Here is what I have:
[TSFE age|doktype = 123]ACT.doNotLinkIt = 1 [global] I am trying to have a TMENU not link an item if the doktype is 123 (a custom doktype...) This isn't working for me. Any suggestions? _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi Timothy,
Timothy Patterson wrote: > [TSFE age|doktype = 123]> ACT.doNotLinkIt = 1 > [global] The path isn't right, this way. TYPO3 needs you to add the full array key inside condition statements, below the full actual TMENU setup that's supposed to work if the condition doesn't match: [TSFE age|doktype = 123]your.tmenu.key { ACT.doNotLinkIt = 1 } [global] hth, Chris -- network.publishing internet & network service | moeller westbunk gbr berrenrather str. 188c | 50937 koeln phone +49 (0)221 99 55 89 - 0 | fax +49 (0)221 99 55 89 - 20 moeller (AT) network-publishing (DOT) de | http://www.network-publishing.de _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Hi,
On 10/3/07, Christoph Moeller <moeller (AT) network-publishing (DOT) de> wrote: > Hi Timothy, > > Timothy Patterson wrote: > > [TSFE age|doktype = 123]> > ACT.doNotLinkIt = 1 > > [global] > > The path isn't right, this way. TYPO3 needs you to add the full array > key inside condition statements, below the full actual TMENU setup > that's supposed to work if the condition doesn't match: > > [TSFE age|doktype = 123]> your.tmenu.key { > ACT.doNotLinkIt = 1 > } > [global] This is true, but won't solve the problem; there is no such condition as 'TSFE'. TSFE is available as part of the globalVar condition: lib.something = foo [globalVar = TSFE age|doktype=123]lib.something = bar [global] -- Christopher Torgalson http://www.typo3apprentice.com/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
I don't mean to sound like a rookie, but I just can't figure out how to
get this to work... It just doesn't seem to care what the doktype is, etc. Any suggestions? Here is my Typoscript: # Menu Object temp.menu_1 = HMENU temp.menu_1.alwaysActivePIDlist = 1185 # First level menu-object - textual temp.menu_1.1 = TMENU temp.menu_1.1 { wrap = <ul>|</ul> # Normal State Properties NO.allWrap = <li>|</li> NO.stdWrap.htmlSpecialChars = 1 # Enable Active State & Set Properties ACT = 1 ACT.wrapItemAndSub = <li>|</li> ACT.stdWrap.htmlSpecialChars = 1 ACT.doNotLinkIt = 0 [globalVar = TSFE age|doktype=123]temp.menu_1.1.ACT.doNotLinkIt = 1 [global] } Christopher Torgalson wrote: > Hi, > > On 10/3/07, Christoph Moeller <moeller (AT) network-publishing (DOT) de> wrote: >> Hi Timothy, >> >> Timothy Patterson wrote: >>> [TSFE age|doktype = 123]>>> ACT.doNotLinkIt = 1 >>> [global] >> The path isn't right, this way. TYPO3 needs you to add the full array >> key inside condition statements, below the full actual TMENU setup >> that's supposed to work if the condition doesn't match: >> >> [TSFE age|doktype = 123]>> your.tmenu.key { >> ACT.doNotLinkIt = 1 >> } >> [global] > > > This is true, but won't solve the problem; there is no such condition > as 'TSFE'. TSFE is available as part of the globalVar condition: > > lib.something = foo > [globalVar = TSFE age|doktype=123]> lib.something = bar > [global] > > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
Hi,
On 10/4/07, Timothy Patterson <tjpatter (AT) svsu (DOT) edu> wrote: > I don't mean to sound like a rookie, but I just can't figure out how to > get this to work... It just doesn't seem to care what the doktype is, > etc. Any suggestions? > > Here is my Typoscript: > > # Menu Object > temp.menu_1 = HMENU > temp.menu_1.alwaysActivePIDlist = 1185 > > # First level menu-object - textual > temp.menu_1.1 = TMENU > temp.menu_1.1 { > wrap = <ul>|</ul> > > # Normal State Properties > NO.allWrap = <li>|</li> > NO.stdWrap.htmlSpecialChars = 1 > > # Enable Active State & Set Properties > ACT = 1 > ACT.wrapItemAndSub = <li>|</li> > ACT.stdWrap.htmlSpecialChars = 1 > ACT.doNotLinkIt = 0 > > [globalVar = TSFE age|doktype=123]> temp.menu_1.1.ACT.doNotLinkIt = 1 > [global] > } Read the TSref's section on conditions; conditions may NOT occur within '{' and '}'. Even if they could, you've got the full object name in your condition, so if they could work in that context, you'd have changed the value of temp.menu_1.1.temp.menu_1.1.ACT.doNotLinkIt = 1 ....which, of course, does not exist. Move the '}' on the last line to just before your condition, and it should work. -- Christopher Torgalson http://www.typo3apprentice.com/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] use typenum in a conditional... how | Andrew Davis | typo3-english@lists.netfielders.de | 1 | 10.09.2007 21:47 |
| [TYPO3] Re: Conditional menu | Brian | typo3-english@lists.netfielders.de | 1 | 10.09.2007 15:19 |
| [TYPO3] Conditional menu | Brian | typo3-english@lists.netfielders.de | 3 | 10.09.2007 15:10 |
| [TYPO3-dev] Conditional display for BE | Al Chuck | typo3-dev@lists.netfielders.de | 10 | 16.03.2007 22:51 |
| [TYPO3] IE7 conditional comments in Templavoila' | Emile | typo3-english@lists.netfielders.de | 6 | 12.12.2006 11:31 |