TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

Re: [TYPO3] if.isTrue AND if.isTrue

This is a discussion on Re: [TYPO3] if.isTrue AND if.isTrue within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Is there a solution for if.isTrue.data = x OR if.isTrue.data = y as well? Regards, Florian JoH schrieb: &...


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 09.05.2007, 11:08
Florian Seirer
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] if.isTrue AND if.isTrue

Is there a solution for if.isTrue.data = x OR if.isTrue.data = y as well?

Regards,
Florian

JoH schrieb:
>> the following is from the gsipagenav extension, and it seems as if
>> it's wrong:
>>
>> <snip>
>> sep = TEXT
>> sep {
>> value = {$plugin.gsipagenav.separator}
>> if {
>> isTrue.data = registerrev_pid
>> isTrue.data = register:next_pid
>> }
>> }
>> <snap>
>>
>> The two "isTrue" conditions are not AND'ed, but the second one
>> overwrites the first one.
>>
>> However, in order to make the extension work properly, the separator
>> TEXT sep should only be printed if both registerrev_pid AND
>> register:next_pid are set. Does anyobdy know how to this can be
>> solved?

>
> sep = COA
> sep {
> if {
> isTrue.data = registerrev_pid
> }
> 10 = TEXT
> 10 {
> isTrue.data = register:next_pid
> value = {$plugin.gsipagenav.separator}
> }
> }
>
> Should be working.
>
> Joey
>

_______________________________________________
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 09.05.2007, 11:19
JoH asenau
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] if.isTrue AND if.isTrue

>>> the following is from the gsipagenav extension, and it seems as if
>>> it's wrong:
>>>
>>> <snip>
>>> sep = TEXT
>>> sep {
>>> value = {$plugin.gsipagenav.separator}
>>> if {
>>> isTrue.data = registerrev_pid
>>> isTrue.data = register:next_pid
>>> }
>>> }
>>> <snap>
>>>
>>> The two "isTrue" conditions are not AND'ed, but the second one
>>> overwrites the first one.
>>>
>>> However, in order to make the extension work properly, the separator
>>> TEXT sep should only be printed if both registerrev_pid AND
>>> register:next_pid are set. Does anyobdy know how to this can be
>>> solved?

>>
>> sep = COA
>> sep {
>> if {
>> isTrue.data = registerrev_pid
>> }
>> 10 = TEXT
>> 10 {
>> isTrue.data = register:next_pid
>> value = {$plugin.gsipagenav.separator}
>> }
>> }
>>

>
> Is there a solution for if.isTrue.data = x OR if.isTrue.data = y as
> well?


sep = TEXT
sep {
isTrue.dataWrap = {register:next_pid}{registerrev_pid}
value = {$plugin.gsipagenav.separator}
}

something like that?

HTH

Joey

--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.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!
  #3  
Alt 09.05.2007, 11:31
Florian Seirer
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] if.isTrue AND if.isTrue

Wow, that was fast. It helped, too.

And since I didn't actually need "data" but "field" values, here's the
code (I added the missing if as well

10 = TEXT
10 {
if.isTrue.field = field_x // field_y // field_z
value = someText
}

Thanks a lot.


JoH asenau schrieb:
>>>> the following is from the gsipagenav extension, and it seems as if
>>>> it's wrong:
>>>>
>>>> <snip>
>>>> sep = TEXT
>>>> sep {
>>>> value = {$plugin.gsipagenav.separator}
>>>> if {
>>>> isTrue.data = registerrev_pid
>>>> isTrue.data = register:next_pid
>>>> }
>>>> }
>>>> <snap>
>>>>
>>>> The two "isTrue" conditions are not AND'ed, but the second one
>>>> overwrites the first one.
>>>>
>>>> However, in order to make the extension work properly, the separator
>>>> TEXT sep should only be printed if both registerrev_pid AND
>>>> register:next_pid are set. Does anyobdy know how to this can be
>>>> solved?
>>> sep = COA
>>> sep {
>>> if {
>>> isTrue.data = registerrev_pid
>>> }
>>> 10 = TEXT
>>> 10 {
>>> isTrue.data = register:next_pid
>>> value = {$plugin.gsipagenav.separator}
>>> }
>>> }
>>>

>> Is there a solution for if.isTrue.data = x OR if.isTrue.data = y as
>> well?

>
> sep = TEXT
> sep {
> isTrue.dataWrap = {register:next_pid}{registerrev_pid}
> value = {$plugin.gsipagenav.separator}
> }
>
> something like that?
>
> HTH
>
> Joey
>

_______________________________________________
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!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
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



Alle Zeitangaben in WEZ +1. Es ist jetzt 00:24 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

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