From: clayton c. <cc...@ca...> - 2001-03-30 14:05:23
|
Karsten, > - The page template *must* provide placeholders for: > - blocks1, blocks2, blocks3, blocks4 [2] > - plugins1, plugins2 [2] > - header [3] > - footer [3] > - main [4] i hate to harp on Smarty again, but one nicety it has is that you (the developer) can define custom tags which can take parameters which can come from PHP variables or a config file. So you can have something like : {block number=$block_number position=$block_position theme=$site_theme} to implement this you would then define a function in an addon file which takes the parameters passed to it and return an html fragment. if needed, you can put the tag in a template block which generates the required parameters. btw for some reason, all your messages appear as attachments in LookOut Express ----- Original Message ----- From: "Karsten Dambekalns" <k.d...@tu...> To: <php...@li...> Sent: Friday, 30. March 2001 8:40 Subject: Re: [Phpwebsite-developers] Template system: Proposal |