[Typo3] simulateStaticDocuments and condition problem
Peter Klein
peter at umloud.dk
Tue Sep 27 20:25:47 CEST 2005
Hi Miko³aj
You can't make conditions like [config.simulateStaticDocuments =1]
Check TSREF for available options.
http://typo3.org/documentation/document-library/doc_core_tsref/Condition_reference/
AFIK. then there's no way to do conditions using config values, but maybe
you could write a userFunc to do it?
http://typo3.org/documentation/document-library/doc_core_tsref/userFunc/
"Note: Conditions can be used in the global space ONLY!"
Means that conditions can ONLY be used OUTSIDE objects. (outside the {}
brackets)
---
Peter Klein/Umloud Untd
"Miko³aj Jêdrzejak" <mikolajj at typo3.com.pl> wrote in message
news:mailman.1.1127691102.3206.typo3-english at lists.netfielders.de...
> Hi there.
> I have a problem with condition.
> I have put into main template file two marks ###BUTTON_HOME### and
> ###BUTTON_COPYRIGHT###.
> Depaenly from the serwer I switch config.simulateStaticDocuments to 0 or 1
> and I would like other things depend on this value.
> For example links.
>
> I have 2 templates:
> "set-up" and "main template"
>
> in [set-up] i have:
> [CONSTANTS]
> SiteLinks.home = index.php?id=home
> SiteLinks.Shome = home.html
> SiteLinks.copyright = index.php?id=copyright
> SiteLinks.Scopyright = copyright.html
>
> [SETUP]
> config.simulateStaticDocuments = 1 # or 0 sometimes
> config.simulateStaticDocuments_noTypeIfNoTitle = 1
>
> in "main template":
> [SETUP]
> marks.BUTTON_HOME = TEXT
> [config.simulateStaticDocuments =1]
> marks.BUTTON_HOME.value = {$SiteLinks.home}
> [else]
> marks.BUTTON_HOME.value = {$SiteLinks.Shome}
> [end]
>
> marks.BUTTON_COPYRIGHT = TEXT
> [config.simulateStaticDocuments =1]
> marks.BUTTON_COPYRIGHT.value = {$SiteLinks.copyright}
> [else]
> marks.BUTTON_COPYRIGHT.value = {$SiteLinks.Scopyright}
> [end]
>
More information about the TYPO3-english
mailing list