[ic] DirConfig and CSS

Ian interchange-users@icdevgroup.org
Sat Jan 4 17:13:00 2003


Hi
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">

BODY {
  background-color: __BACKGROUND__;
  font-family: __MAINCONTENT_FONT__;
  font-size: __MAINCONTENT_FONTSIZE__;
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

TD {
  font-family: __MAINCONTENT_FONT__;
  font-size: __MAINCONTENT_FONTSIZE__;
}

A:link, A:active, A:visited {
  color: __LINK__;
  font-family: __MAINCONTENT_FONT__;
  font-weight: __MAINCONTENT_WEIGHT__;
  text-decoration: __LINKDECO__;
  font-size: __MAINCONTENT_FONTSIZE__;
}

A:hover {
  color: __LINKHOVER__;
  font-family: __MAINCONTENT_FONT__;
  font-weight: __MAINCONTENT_WEIGHT__;
  text-decoration: __LINKHOVERDECO__;
  font-size: __MAINCONTENT_FONTSIZE__;
}

A.barlink:link, A.barlink:active, A.barlink:visited {
  color: __CATEGORYBAR_LINK__;
  font-family: __CATEGORYBAR_FONT__;
  font-weight: __CATEGORYBAR_WEIGHT__;
  text-decoration: __CATEGORYBAR_LINKDECO__;
  font-size: __CATEGORYBAR_FONTSIZE__;
}

A.barlink:hover {
  color: __CATEGORYBAR_LINKHOVER__;
  font-family: __CATEGORYBAR_FONT__;
  font-weight: __CATEGORYBAR_WEIGHT__;
  text-decoration: __CATEGORYBAR_HOVERDECO__;
  font-size: __CATEGORYBAR_FONTSIZE__;
}

.maincontent {
  background-color: __MAINCONTENT_BG__;
  color: __MAINCONTENT_TEXT__;
  font-family: __MAINCONTENT_FONT__;
  font-weight: __MAINCONTENT_WEIGHT__;
  font-size: __MAINCONTENT_FONTSIZE__;
}

.contentbar1 {
  background-color: __CONTENTBAR1__;
  color: __MAINCONTENT_TEXT__;
  font-family: __MAINCONTENT_FONT__;
  font-weight: __MAINCONTENT_WEIGHT__;
  font-size: __MENUBAR_FONTSIZE__;
}

.contentbar2 {
  background-color: __CONTENTBAR2__;
  color: __MAINCONTENT_TEXT__;
  font-family: __MAINCONTENT_FONT__;
  font-weight: __MAINCONTENT_WEIGHT__;
  font-size: __MENUBAR_FONTSIZE__;
}

.categorybar {
  background-color: __CATEGORYBAR_BG__;
  color: __CATEGORYBAR_TEXT__;
  font-family: __CATEGORYBAR_FONT__;
  font-weight: __CATEGORYBAR_WEIGHT__;
  font-size: __CATEGORYBAR_FONTSIZE__;
}

.menubar {
  background-color: __MENUBAR_BG__;
  color: __MENUBAR_TEXT__;
  font-family: __MENUBAR_FONT__;
  font-weight: __MENUBAR_WEIGHT__;
  font-size: __MENUBAR_FONTSIZE__;
}

</STYLE>
EOV


Where am I going wrong?

Many thanks,

Ian