Can I nest themes when using DWT?

T

Tony Strazzeri

My web has two main streams (subwebs?)
Before changing my web to use Dynamic Web Templates I was simply
applying one of two different themes to the page.

The main differences between each theme is the background colour at the
left edge of the page (soft yellow v soft blue). I have made some
other small changes to each theme but they are not important. I intend
to eventually have slightly different colour variation in the
navigation buttons between each theme. But for now that also is not
important.

The navigation structure is the same for both.

Two main questions

Q1. Is there a way to apply the different themes to the relevant pages
without having to create two separate DWT and applying them as required
to each page?

I thought I could nest the theme html but that doesn't seem to work. I
had the default theme on one dwt and added the other them in a page
specific area of the dwt. What I discovered was that regardless of
which instruction came first, although I could get the non default
theme to display in Design and Preview, once I saved and closed the
page the default theme is what stuck when I reopen the page.

Is it possible to cascade DWT and/or themes?

Q2. When doing this I also noticed that I had both a html tag line for
the theme and also one for a linked style sheet. But after save,
close, open the theme tag line would disappear but the link tag
remained.

Now, I am not sure of the main difference between using theme v style
sheet, but is it odd that this is happening?

I thought that editing the theme created/modified a style sheet for the
theme but the theme still handles things like button images. So I am
confused even more so to discover that in the theme folder there are
several styly sheets. ie. my theme is called 'fspace'. The
'_themes\fspace' folder has seven cascading style sheets called 'color,
color1, fspa1011, fspa1111, graph0, graph1,theme' all with extension
css.

Having asked all that specific stuff, am I approaching this the wrong
way? Perhaps!
Should I be using subwebs? I think not?
Can you point me to some resource that more directly discusses these
topics?


Assistance has been great and is greatly appreciated.

Cheers and Thanks.
TonyS.
 
S

Stefan B Rusynko

The only way is to make the theme tag an editable region in the DWT and manually edit each page to select a theme (one of them must
be a default theme)
<!-- #BeginEditable "doctheme" -->
theme META tag here
<!-- #EndEditable -->


IMHO you are better off w/ 2 DTWs
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| My web has two main streams (subwebs?)
| Before changing my web to use Dynamic Web Templates I was simply
| applying one of two different themes to the page.
|
| The main differences between each theme is the background colour at the
| left edge of the page (soft yellow v soft blue). I have made some
| other small changes to each theme but they are not important. I intend
| to eventually have slightly different colour variation in the
| navigation buttons between each theme. But for now that also is not
| important.
|
| The navigation structure is the same for both.
|
| Two main questions
|
| Q1. Is there a way to apply the different themes to the relevant pages
| without having to create two separate DWT and applying them as required
| to each page?
|
| I thought I could nest the theme html but that doesn't seem to work. I
| had the default theme on one dwt and added the other them in a page
| specific area of the dwt. What I discovered was that regardless of
| which instruction came first, although I could get the non default
| theme to display in Design and Preview, once I saved and closed the
| page the default theme is what stuck when I reopen the page.
|
| Is it possible to cascade DWT and/or themes?
|
| Q2. When doing this I also noticed that I had both a html tag line for
| the theme and also one for a linked style sheet. But after save,
| close, open the theme tag line would disappear but the link tag
| remained.
|
| Now, I am not sure of the main difference between using theme v style
| sheet, but is it odd that this is happening?
|
| I thought that editing the theme created/modified a style sheet for the
| theme but the theme still handles things like button images. So I am
| confused even more so to discover that in the theme folder there are
| several styly sheets. ie. my theme is called 'fspace'. The
| '_themes\fspace' folder has seven cascading style sheets called 'color,
| color1, fspa1011, fspa1111, graph0, graph1,theme' all with extension
| css.
|
| Having asked all that specific stuff, am I approaching this the wrong
| way? Perhaps!
| Should I be using subwebs? I think not?
| Can you point me to some resource that more directly discusses these
| topics?
|
|
| Assistance has been great and is greatly appreciated.
|
| Cheers and Thanks.
| TonyS.
|
 
T

Tony Strazzeri

Stefan, Thanks for the reply.

I was about to write you a reply to say that I had already done that.
Whilst setting up some code samples to explain to you I discovered what
I think is the problem.

My DWT is in the root folder of the web site but my pages are arranged
in folders at different levels.

I think I was pasting the page specific tag with a path relative to the
root folder. But the path for the page specific theme must be relative
to the location of the page.

Hence instead of
<link rel="stylesheet" type="text/css"
href="_themes/fspacemh/fspa1011.css">

I should use
<link rel="stylesheet" type="text/css"
href="../../_themes/fspacemh/fspa1011.css">

or depending on the depth, even;
<link rel="stylesheet" type="text/css"
href="../../../_themes/fspacemh/fspa1011.css">

Anyway I think this fixes it, but it is 11:00pm here now and in getting
this far I have screwed up a stack of other stuff so I will check it
out tomorrow and post back.

Any chance of a comment on the other questions?

Cheers
TonyS.
 
T

Tony Strazzeri

Stefan, Thanks for the reply.

I was about to write you a reply to say that I had already done that.
Whilst setting up some code samples to explain to you I discovered what
I think is the problem.

My DWT is in the root folder of the web site but my pages are arranged
in folders at different levels.

I think I was pasting the page specific tag with a path relative to the
root folder. But the path for the page specific theme must be relative
to the location of the page.

Hence instead of
<link rel="stylesheet" type="text/css"
href="_themes/fspacemh/fspa1011.css">

I should use
<link rel="stylesheet" type="text/css"
href="../../_themes/fspacemh/fspa1011.css">

or depending on the depth, even;
<link rel="stylesheet" type="text/css"
href="../../../_themes/fspacemh/fspa1011.css">

Anyway I think this fixes it, but it is 11:00pm here now and in getting
this far I have screwed up a stack of other stuff so I will check it
out tomorrow and post back.

Any chance of a comment on the other questions?

Cheers
TonyS.
 
T

Tony Strazzeri

Stefan, Thanks for the reply.

I was about to write you a reply to say that I had already done that.
Whilst setting up some code samples to explain to you I discovered what
I think is the problem.

My DWT is in the root folder of the web site but my pages are arranged
in folders at different levels.

I think I was pasting the page specific tag with a path relative to the
root folder. But the path for the page specific theme must be relative
to the location of the page.

Hence instead of
<link rel="stylesheet" type="text/css"
href="_themes/fspacemh/fspa1011.css">

I should use
<link rel="stylesheet" type="text/css"
href="../../_themes/fspacemh/fspa1011.css">

or depending on the depth, even;
<link rel="stylesheet" type="text/css"
href="../../../_themes/fspacemh/fspa1011.css">

Anyway I think this fixes it, but it is 11:00pm here now and in getting
this far I have screwed up a stack of other stuff so I will check it
out tomorrow and post back.

Any chance of a comment on the other questions?

Cheers
TonyS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top