Die TYPO3 Mailingliste - nicht fragen: lesen!
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: &...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
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 = register rev_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 register rev_pid AND>> register:next_pid are set. Does anyobdy know how to this can be >> solved? > > sep = COA > sep { > if { > isTrue.data = register rev_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 |
|
#2
|
|||
|
|||
|
>>> 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 = register rev_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 register rev_pid AND>>> register:next_pid are set. Does anyobdy know how to this can be >>> solved? >> >> sep = COA >> sep { >> if { >> isTrue.data = register rev_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}{register rev_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 |
|
#3
|
|||
|
|||
|
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 = register rev_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 register rev_pid AND>>>> register:next_pid are set. Does anyobdy know how to this can be >>>> solved? >>> sep = COA >>> sep { >>> if { >>> isTrue.data = register rev_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}{register rev_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 |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|