TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 03.10.2007, 22:28
Timothy Patterson
Gast
 
Beiträge: n/a
Standard [TYPO3] Need help with a conditional...

Here is what I have:

[TSFEage|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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 03.10.2007, 23:02
Christoph Moeller
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Need help with a conditional...

Hi Timothy,

Timothy Patterson wrote:
> [TSFEage|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:

[TSFEage|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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 04.10.2007, 07:32
Christopher Torgalson
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Need help with a conditional...

Hi,

On 10/3/07, Christoph Moeller <moeller (AT) network-publishing (DOT) de> wrote:
> Hi Timothy,
>
> Timothy Patterson wrote:
> > [TSFEage|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:
>
> [TSFEage|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 = TSFEage|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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 04.10.2007, 16:57
Timothy Patterson
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Need help with a conditional...

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 = TSFEage|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:
>>> [TSFEage|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:
>>
>> [TSFEage|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 = TSFEage|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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 04.10.2007, 17:07
Christopher Torgalson
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Need help with a conditional...

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 = TSFEage|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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:44 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75