Smarty progress report
| From: | Holger Bahr | Date: | Wed, 11 Apr 2001 09:31:31 +0000 |
| Subject: | Smarty progress report | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-519@lists.php.net to get a copy of this message | ||
Hi Monte,
it would be cool to have sections where i can loop though includes and
provide a additional (fixed) path in the template
Example:
--------
normal lopped include:
{section name=sidebar loop=$sidebar_content}
{include file=$sidebar_content/sidebar}
{/section}
would be great with providing an additional path ("mytheme") like:
{section name=sidebar loop=$sidebar_content}
{include file="mytheme/".$sidebar_content/sidebar}
{/section}
hope you understand.
my array looks like:
$sidebar_content = array("sidebar" => array("001.tpl",
"002.tpl"));
and the assign:
$smarty->assign($sidebar_content);
currently my array looks like:
$sidebar_content = array("sidebar" => array("mytheme/001.tpl",
"mytheme/002.tpl"));
adding "mytheme" all the time is kinda redundant if i include many
parts, so it would be great to write it once in the template.
Holger