[ic] Changing a catalog variable

Kevin Walsh kevin at cursor.biz
Fri Feb 11 18:35:11 EST 2005


Kaare Rasmussen [kar at kakidata.dk] 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...
> 
> (Only an example; you get the idea).
> 
Jon's comments in this thread were accurate, but there's another
method you could consider:

    * In most of your pages, just use the following (no change):

        @_ONLY_TOP_@

    * In your "override logo" page(s), use the following:

        [tmpn logo_override]newlogo.png[/tmpn]
        @_ONLY_TOP_@

    * In your template, change __LOGO__ to the following:

        [ether][scratch logo_override][or]__LOGO__[/either]

Not tested, but it should work.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/



More information about the interchange-users mailing list