[TYPO3-dev] Moving the topic of the discussion a little bit -- Based of thread "Change roadmap..."
Dimitri Tarassenko
mitka at mitka.us
Wed Apr 12 22:01:10 CEST 2006
Ernesto,
On 4/12/06, Ernesto Baschny [cron IT] <ernst at cron-it.de> wrote:
> So if we adopt Smarty as a templating engine that extensions *can* use,
> I would use it right away! Finding a way to integrate Smarty into
> TypoScript is still a bit misterious, because cObjects processes one
> record at the time, while Smarty could be able to process the whole
> "rowset" with one template call. Combining Smarty with stdWrap and other
> TS-possibilities seems to me the most perfect combination. You would use
> TS for what its best at (stdWrap functions to "process" your data,
> existing cObjects to render common output, etc) and Smarty for what its
> best at (offer a template to render information).
This is an actual Smarty template that I did two weeks ago:
[..]
{foreach from=$members item=member}
{strip}
<div class="member">
<div class="member-logo">
{if $member.tx_memberdb_logo!=''}
{assign var=logofile
value=$member.tx_memberdb_logo}
{assign var=logoalt value=$member.companyname}
{typo3_render_typoscript ts="
5 = IMAGE
5.file=uploads/tx_memberdb/$logofile
5.file.width=100
5.alttext = $logoalt
"}
{/if}
</div>
From my discussion with Thomas Murphy I understand that you may expect
this to be available in the next release of smarty extension.
--
Dimitri Tarassenko
More information about the TYPO3-dev
mailing list