using variable modifiers with {include} or {assign} tag?
| From: | Michael Yoon | Date: | Sun, 10 Mar 2002 04:05:15 +0000 |
| Subject: | using variable modifiers with {include} or {assign} tag? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3000@lists.php.net to get a copy of this message | ||
Hi,
I have a header template that's included by my main template, which, in
turn, passes in the page title, e.g.:
{include file="header.tpl" title="Page Title"}
For one of my pages, I want the page title to contain a variable
formatted by the date_format modifier, something like:
{include file="header.tpl"
title={$date|date_format:"%A, %B %e, %Y"}}
or:
{assign var="title" value={$date|date_format:"%A, %B %e, %Y"}}
{include file="header.tpl" title=$title}
Neither of the above code snippets work, but hopefully you get the idea.
Any suggestions as to how to accomplish this?
Thanks,
Michael