Re: [SMARTY] Calling for template blocks within the same template file

From: Date: Tue, 19 Nov 2002 10:23:07 +0000
Subject: Re: [SMARTY] Calling for template blocks within the same template file
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6471@lists.php.net to get a copy of this message
No. I have the only one template file for the whole site, but depending on a request, different parta (blocks) of that file would be processed, dor examp. one block for news, the other for products. I would choose using {if} structure. But I also need, that those different blocks would use some common block, when needed, call it some how, and taht block would locate in the same file, but not processed, until called explicitly. All these scenario takes place on a template level. SO I dont know how to implement that common block. "Bertrand Dunogier" <bdunogier@wanadoo.fr> wrote in message news:1227536421.20021119105826@wanadoo.fr... > npn> SO, the problem IS: is there any possibility to do that ???(without putting > npn> that COMMON_BLOCK to different file, as I need to have only one templete > npn> file due special reasons.) > Err you want the block to be the same in every file, without having it in an > external file ? > > Katana >

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