[ic] Changing a catalog variable

Jon Jensen jon at endpoint.com
Thu Feb 10 10:45:50 EST 2005

On Thu, 10 Feb 2005, Kaare Rasmussen wrote:

> Is it possible to change a catalog varible dynamically?
> I have _one_ page where I don't want the default logo. The logo is displayed
> with __THEME_LOGO__ in the top templates but I would like to be able to do
> something like
> [tmp __LOGO__]newlogo.png[/tmp]
> @_ONLY_TOP_@
> ... the rest of the page...


     $Variable->{LOGO} = 'newlogo.png';

And then use [var LOGO] later.

__LOGO__ interpolates too soon for any changes on the page to take effect.


Jon Jensen
End Point Corporation
Software development with Interchange, Perl, PostgreSQL, Apache, Linux, ...

More information about the interchange-users mailing list