Dynamic Web Templates and Cascading Style Sheets

B

Bruce Sanderson

I'm new to these subjects, so please bear with me.

FrontPage 2003 SP1

1. create DWT using a Table (not sure what other options I might have) with
two rows and two columns.
2. select the upper right column as an Editable Region and name it
PageContent.
3. merge the two rows in the left column so there is only one cell (a left
border)
4. add some text to the left column and the bottom right cell (footer)
5. save as mine.dwt

6. create a CSS and add a User Defined style (bullet1) and save the css.

7. create blank page and use Format, Style Sheet Links to link the css to
the new page .
8. add some text and apply the bullet1 style from the style sheet. Looks
good.

9. use Format, Dynamic Web Template, Attach Dynamic Web Template and select
mine.dwt (saved at step 5); click Open; click OK
7. get the message box (1 of 1) files updated; click Close
8. the DWT gets applied, but the text formatting applied at step 8
disappears (text reverts to default paragraph format and font) and the Style
and Style Sheet Links items in the Format menu are greyed out.

So, does this mean that I can not use style sheets on pages that are linked
to Dynamic Web Templates?
 
R

Ronx

Yes and No.

With the steps you are using you cannot link a style sheet to the new page.
The DWT will replace all code in any region that is not editable.

There are options:

1) Link the style sheet to the DWT, then it will be linked to all pages the
DWT is attached to, and cannot be changed on a per page basis.

2) Link the style sheet to the DWT, and place it in an editable region:
in code view,
<!-- #BeginEditable "styles" -->
<link rel="stylesheet" type="text/css" href="blah.css">
<!-- #EndEditable -->
This enables a choice of style sheets on the new pages.

3) As above, but place the style sheet link into the existing doctitle
editable region.

4) In the new page, in Code view, manually type the style sheet link into
the doctitle editable region in the <head> section of the new page, *after*
attaching the DWT.

In cases 2 and 3, you may have to apply the style sheet to the new page
before you attach the DWT.

I use method 1. I have never tried 2.
 
J

Jack Brewster

Completely off-topic, but I wanted to thank Bruce for his printing site. I
just found it this week while assisting our Help Desk in coming up with a
way to configure printers on our workstations. Choice work, and definitely
put us over the hump. Bummer about the inability to assign a default
printer to all profiles, though.

Glad you posted here so I could share my appreciation.

Thanks again,
 
B

Bruce Sanderson

You're welcome and thanks for the feedback. Most of the time I hear nothing
and so wonder if the site is of any use to anyone.

--
Bruce Sanderson MVP Printing
http://members.shaw.ca/bsanders

It is perfectly useless to know the right answer to the wrong question.



Jack Brewster said:
Completely off-topic, but I wanted to thank Bruce for his printing site.
I just found it this week while assisting our Help Desk in coming up with
a way to configure printers on our workstations. Choice work, and
definitely put us over the hump. Bummer about the inability to assign a
default printer to all profiles, though.

Glad you posted here so I could share my appreciation.

Thanks again,
 
J

Jack Brewster

Bruce said:
You're welcome and thanks for the feedback. Most of the time I hear nothing
and so wonder if the site is of any use to anyone.

But that's par for the course as an MVP. :)
 

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