[Typo3] GlobalVar - this one *should* be simple, right ... ?
Scotty C
superscotty19 at yahoo.com
Wed Dec 14 18:54:00 CET 2005
Hello again!
I forgot to mention: the problem is that the only
template appearing is template.html - it seems that
the globalVar statement is never checked or executed.
Thanks!
-Scott.
--- Scotty C <superscotty19 at yahoo.com> wrote:
> Hi everyone,
>
> This one's got me puzzled. I've used globalVar
> before
> to check a condition and it's worked fine. Now, I'm
> using it for another site, but the code won't work!
> The siutation is, I'd like to use 2 different
> templates depending on the page id. Here's my code:
>
> Constants:
> -----------
>
> # default template file
> templateFile =
> fileadmin/xpressxperience/template.html
>
> # use this template file if pageid = 286
> [globalVar = TSFE:id = 286]
> templateFile = fileadmin/xpressxperience/home.html
> [end]
>
>
> Setup:
> -------
>
> # Default PAGE object:
> page = PAGE
> page.typeNum = 0
> page.stylesheet =
> fileadmin/xpressxperience/xpressxperience_style.css
>
> ###################################################
>
> page.meta.KEYWORDS =
> page.meta.DESCRIPTION = xpressxperience
>
> ###################################################
>
> page.bodyTag = <BODY BGCOLOR="black" width="100%"
> topmargin="0" bottommargin="0" leftmargin="0"
> marginheight="0" marginwidth="0">
>
> ###################################################
>
> page.19 = TEMPLATE
> page.19 {
> template = FILE
> template.file = {$templateFile}
>
> # just load the section labelled ###DOCUMENT###
> workOnSubpart = DOCUMENT
>
> subparts.CONTENT < styles.content.get
>
> } # end template
>
> ###################################################
> config {
> spamProtectEmailAddresses = 2
> spamProtectEmailAddresses_atSubst = <at>
> #simulateStaticDocuments = PATH_INFO
> }
> ###################################################
>
>
> I don't believe this is anything out of the
> ordinary,
> but it doesn't work! If anyone can help, I'd really
> appreciate it!
>
> Thanks!
> -Scott.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
>
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the TYPO3-english
mailing list