[Typo3] "IF" confusion - please help!

Scotty C superscotty19 at yahoo.com
Wed Oct 12 00:57:08 CEST 2005


Hey Peter!

First of all, thanks for the suggestion - the concept
of globalvars is BRILLIANT! That said, I pasted
exactly what you had and my page disappeared. Then I
changed [GLOBAL] to [end] and I got the page back, but
it still didn't work - it's inserting 'id="news"' into
every page instead of just the page with the specific
id (194)!

What's up with that?

Thanks again!
-Scott.


--- Peter Klein <peter at umloud.dk> wrote:

> Hi Scotty. Try using "conditions" instead.
>
http://typo3.org/documentation/document-library/doc_core_tsref/globalVars/
> 
> Something like this:
> -- cut --
> [globalVar = TSFE:id = <id of your HOME page here>]
> blabla.subparts.NEWSID = TEXT
> blabla.subparts.NEWSID.value = id="news"
> [GLOBAL]
> -- cut --
> 
> ---
> Peter Klein / Umloud Untd
> 
> 
> "Scotty C" <superscotty19 at yahoo.com> wrote in
> message 
>
news:mailman.3127.1129068122.10463.typo3-english at lists.netfielders.de...
> >> >
> >> > I have a subpart:
> >> >    <td <!--###NEWSID###--> <!--###NEWSID###-->
> >
> >> >
> >> > and I want to populate the subpart with:
> >> >    id="news"
> >> >
> >> > IF the page title is:
> >> >    Home
> >> >
> >> >
> >> > Now, if I was normally coding, this is my
> >> thinking:
> >> > if (field:title = Home)
> >> >    then subparts.NEWSID.value = id="news"
> >> >
> >> > So in the end, my HTML template would look like
> >> this
> >> > (assuming we were at the Home page):
> >> >    <td id="news">
> >> >
> >> > ... But I have no idea how to do this in Typo3
> -
> >> > please help!
> >> >
> >> > Thanks!
> >> > -Scott.
> 
> 
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
>
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 



		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/



More information about the TYPO3-english mailing list