include template results in another template outside smarty

From: Date: Sun, 29 Apr 2001 20:58:42 +0000
Subject: include template results in another template outside smarty
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-648@lists.php.net to get a copy of this message
Hi, I started using Smarty a couple of days ago to replace FastTemplate. I am really impressed, it is really a great tool and I plan to integrate it in my OSS code which runs http://www.newsisfree.com/ But I have a little problem: I am trying to fill the values of a template using the fetched result of another template (refered to as inner-template), i.e. use that that result in assign calls. I have several instances of the inner-template generated data in the top template. My problem is that when I render that top template, all instances of the inner-template data is replaced by the same date, explicitly the data of the last inner-template call (not sure I am being clear ;-) To see what I mean: http://www.newsisfree.com/nhpe/sources/bundles/12/ Boxes are generated by the inner-template. "Scientific American" is the last generated box. Their layout is handled by an outer-template... Is there a way to prevent this? I guess the right thing to do is {include} the sub-templates in {sections} but the exact sub template depends on the type of the source, I don't want to put too much logic in the template files... Any help would be appreciated, thanks, Mike ===== mwkrus @ yahoo.com http://mkrus.free.fr/ http://www.newsisfree.com/ ICQ: 30900412 __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/

« previous php.smarty.general (#648) next »