[NBP web-reskin] Creating the first template
Edie Coletti
ecoletti at nbp.org
Tue Sep 22 18:31:30 EDT 2009
Hi Steve:
I will try my best to address your questions - Ethan has a baby due any day
now so he may not be available to respond for a while.
I created another homepage1.html and a HEAD_P in camp26 and pushed them to
the master repository. If you would like to take a look, you can do a git
pull to your camp. My responses follow your questions.
Edie
-----Original Message-----
From: web-reskin-bounces at nbp.org [mailto:web-reskin-bounces at nbp.org] On
Behalf Of Didomenico, Steven
Sent: Tuesday, September 22, 2009 1:19 PM
To: Discussions regarding the 2009 UI reskin of nbp.org
Subject: [NBP web-reskin] Creating the first template
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.
Use /nbp/StylesNew.css, you don't need the /htdocs since it is Apache's
document root (where the images reside). When I created HEAD_P, I just took
everything in <head>...</head> from homepage1.html and copied it to HEAD_P.
Then, I replaced <head>...</head> in homepage1.html with @_HEAD_P_@ and
restarted interchange.
(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
I'm not too clear on this either, but based on my testing, the styles are
pulled from main_color_default.css and main_size_default.css. So I would
make changes here.
(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)
You don't need to restart if you are modifying .css, I'm not sure about a
change to catalog.cfg. You do need to restart if you add a new template.
HEAD_P was not recognized until I did a restart.
Thanks,
Steve
_______________________________________________
Web-reskin mailing list
Web-reskin at nbp.org
http://www.nbp.org/mailman/listinfo/web-reskin
More information about the Web-reskin
mailing list