[NBP web-reskin] Creating the first template

Didomenico, Steven steven.didomenico at fmr.com
Tue Sep 22 13:19:13 EDT 2009


Hi Ethan,

My questions are below:

But first here is the homepage prototype.

http://28.camp.nbp.temphost.net:9028/ic/nbp/homepage.html 

Here are three attempts by me to create a new template called HEAD_P
(HEAD_Prototype) 

http://29.camp.nbp.temphost.net:9029/ic/nbp/homepage.html - using
Interchange coding from template HEAD and [var CUSTOM_CSS] template
called HEAD_P

http://29.camp.nbp.temphost.net:9029/ic/nbp/homepage2.html - using
Interchange coding from template HEAD without [var CUSTOM_CSS] template
called HEAD_P2

http://29.camp.nbp.temphost.net:9029/ic/nbp/homepage3.html - pure HTML
with a template called HEAD_P3

These all use     <link href="/nbp/StylesNew.css" rel="stylesheet"
type="text/css" />    to get at the new styles for the site.  The styles
in StylesNew.css have not yet been included in the .css files in
\htdocs\nbp. This href works fine when the homepage and the StylesNew
are at root.  Well I think it's root. As you can see the new styles are
not picked up in these pages.  Last night I could not figure out a path
to use to get at them.

Questions:

(1) 

For this site directory structure:

If my Template is in \catalogs\nbp\templates\regions what can I use in
the href to pull in a .css file in \htdocs\nbp?  This is only temporary
as we will be using the CUSTOM_CSS variable to include the Styles in all
pages.

(2)

Based upon the information below about CUSTOM_CSS, can I can put the
styles in StylesNew.css into main_font.css. Will this work? (rather than
the href) I tried adding the styles to main_font.css but it did not pick
them up. Maybe I did it wrong.   

Variable CUSTOM_CSS <<EOV
    <link rel="stylesheet" type="text/css" href="/nbp/main_font.css">
    <link rel="stylesheet" type="text/css" href="/nbp/main_color_[value
style_color].css">
    <link rel="stylesheet" type="text/css" href="/nbp/main_size_[value
style_size].css">
EOV  

(3)

When we modify the .css files in \htdocs\nbp do we have to restart
Interchange or Apache? I mean is the definition in
catalogs/nbp/catalog.cfg stored in a server variable or are the Styles
themselves stored in memory. (maybe this question is unnecessary)

Thanks,

Steve





More information about the Web-reskin mailing list