|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hello,
I'm doing this conditional test to change my body tag: 10 = COA 10{ 10 = COA 10 { if.isTrue.cObject = TEXT if.isTrue.cObject { data = DB : pages:68:hidden } 10 = TEXT 10.value = hidden 20 = PAGE 20.bodyTag = <body onLoad="ouvrir_popup();"> } 20 = COA 20 { if.isFalse.cObject = TEXT if.isFalse.cObject { data = DB : pages:68:hidden } 10 = TEXT 10.value = not hidden 20 = PAGE 20.bodyTag = <body onLoad="fermer_popup();"> } } It's working with the TEXT because I'v tested it in a mapped library in my template. But I don't why it's not working for the PAGE ! Any Idea ? Thanks in advance Daniel _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi,
On 10/5/07, Daniel Tâche <daniel (AT) comeandsee (DOT) ch> wrote: > Hello, > > I'm doing this conditional test to change my body tag: > > > 10 = COA > 10{ > > 10 = COA > 10 { > if.isTrue.cObject = TEXT > if.isTrue.cObject { > data = DB : pages:68:hidden > } > 10 = TEXT > 10.value = hidden > 20 = PAGE > 20.bodyTag = <body onLoad="ouvrir_popup();"> > } > 20 = COA > 20 { > if.isFalse.cObject = TEXT > if.isFalse.cObject { > data = DB : pages:68:hidden > } > 10 = TEXT > 10.value = not hidden > 20 = PAGE > 20.bodyTag = <body onLoad="fermer_popup();"> > } > } > > > It's working with the TEXT because I'v tested it in a mapped library in > my template. But I don't why it's not working for the PAGE ! > > Any Idea ? > Thanks in advance PAGE is a top-level object. It cannot belong to a COA. If you want a nice working example of how to do what you're doing, check the TemplaVoila newsgroup and look for the subject "how to map a body attribute". -- 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] Need help with a conditional... | Timothy Patterson | typo3-english@lists.netfielders.de | 4 | 04.10.2007 17:07 |
| [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 |