[ic] DirConfig and CSS
Kevin Walsh
interchange-users@icdevgroup.org
Sat Jan 4 18:08:01 2003
Ian [ian@w3it.com] wrote:
>
> I am having a problem with templates.
>
> From documentation and search results of the mailing lists, I should be able
> to reflect templates with the following line in theme.cfg file of the
> relevant theme. However this does not seem to work.
>
> DirConfig Variable templates/__THEME__/regions
>
> I found a mention of using catalog.cfg with varible settings like the
> following:
> Variable LEFTONLY [include templates/LEFTONLY]
> Variable LEFTRIGHT [include templates/LEFTRIGHT]
> Variable LEFTRIGHT_TOP [include
> templates/__THEME__/regions/LEFTRIGHT_TOP]
> Variable LEFTRIGHT_BOTTOM [include
> templates/__THEME__/regions/LEFTRIGHT_BOTTOM]
>
> This works however the THEME_CSS set in theme.cfg does not seem to get set
> or translated. Using __THEME_CSS__ in LEFTRIGHT_TOP template and index.html
> produces a blank. Here is the actual variable seting in catalog.cfg:
>
> Variable THEME_CSS <<EOV
> <STYLE TYPE="text/css">
> ...snip...
> </STYLE>
> EOV
>
Try the following patch. I'll have a play with it and book it into
CVS later.
======================================================================
*** Config.pm 1 Jan 2003 14:13:05 -0000 2.88
--- Config.pm 4 Jan 2003 23:04:45 -0000
***************
*** 3231,3236 ****
--- 3231,3237 ----
next unless -f "$dir/$_";
#::logDebug("reading key=$_ from $dir/$_");
$ref->{$_} = readfile("$dir/$_", $Global::NoAbsolute, 0)
;
+ $ref->{$_} = substitute_variable($ref->{$_}) if $C->{Par
seVariables};
$sref->{$_} = "$dir/$_";
}
}
======================================================================
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/