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 05.10.2007, 13:50
Daniel Tâche
Gast
 
Beiträge: n/a
Standard [TYPO3] Change body tag with conditional Test

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
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 05.10.2007, 13:56
Christopher Torgalson
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Change body tag with conditional Test

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
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] 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


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:24 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