[TYPO3-dev] My first (for me) advanced extension
JoH
info at cybercraft.de
Sat Mar 18 14:50:19 CET 2006
> Smarty is just handy to move some of the desission making into HTML
> instead of marker replacement.
>
> This is easy in smarty....
> {if $SOMETHINGBOLD}}
> <b>$SOMETHINGBOLD</b>
> {else}
> <em>Or a other text</em>
> {/if}
>
> The above is more complicated to make in typo's templating
> replacement system.
HTML:
###SOMETHINGBOLD###
TS-Template:
page.10.marks {
SOMETHINGBOLD = TEXT
SOMETHINGBOLD {
value = <em>Or another text</em>
override.field = title
override.wrap = <b>|</b>
}
}
Doesn't look very complicated to me.
The only difference is, that the smarty approach is using parts of the logic
inside the HTML template which is no good idea, since usually HTML files are
produced by designers whithout much programming experience.
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
More information about the TYPO3-dev
mailing list