Cees Hek wrote:
On 3/30/06, fayland <[EMAIL PROTECTED]> wrote:
It's a normal question. we have a wrapper.html contains:
<title>[% title || c.config.name %]</title>
how to set this "title"? I use [% META title = , but META cann't be a
var like forum.name.
my problem is how can I set this "title" as forum.name. ( I tried set
$c->stash->{title} = $forum->name , it doesn't help)

I usually just set the title right in the template that is being wrapped.

[% WRAPPER wrapper.html title=forum.name %]

[% END %]
We use Catalyst to build our site, so it seems unadoptable. O:-)
But you should also just be able to set that value as a normal variable:

[% SET title = forum.name %]

it cann't work since the WARPPER is work first than other tt files I think.
Cheers,

Cees

--

Fayland Lam // http://www.fayland.org/

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to