[TYPO3-dev] relaease plans for typoe 4.2?

JoH asenau info at cybercraft.de
Tue May 8 12:23:50 CEST 2007


>>> if($some_value>1 || $some_value<10) { $object->render=true; }
>
>> On T3DD07 something like this has been suggested:
>>
>> object.property.if = {$val1} > 1 or {$val2} < 10
>
> Please compare your "solution" to PHP above. You are reinventing the
> wheel.
>
> Plus you will have to implement syntax and error checking, which
> doesn't exist.
>
> Plus it will be always slower than native PHP.

Now for the umpteenth time:
If you want to use PHP instead of TypoScript just do it.

Why is it so important for you to force other people into your personal way
of solving things?

TYPO3 offers many ways to reach different goals and one of them is
TypoScript.
If you don't like it, don't use it and stop stepping on everybodies nerves
by repeating your rant over and over again.

And to give you an example that is far beyond the if-example you are using
as the only proof that TypoScript is ridiculous: How would you do this with
pure PHP and how much time do you think it would take to get a working
result for someone who doesn't know PHP?

10 = HMENU
10 {
    entryLevel = 1
    1 = TMENU
    1 {
        wrap = <ul>|</ul>
        NO = 1
        NO {
            allWrap = <li class="first">|</li> |*| <li class="middle">|</li>
|*| <li class="last">|</li>
        }
        ACT < .NO
        ACT {
            ATagParams = class="active"
        }
        CUR < .NO
        CUR {
            ATagParams = class="current"
        }
    }
}

Nice and easy to do with TS.

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






More information about the TYPO3-dev mailing list