cascading dynamic templates

G

Guest

I have a set of menu rollover buttons which I want to use in various dynamic
templates. However, I also want the templates to update when I update the
button menu. I made the file containing only the menu (html + javascript)
into a template file but I am not permitted to attach that to another
template file. If I keep the menu file as a regular htm file then I can
incorporate it into other templates. The problem then is that you do not get
a cascading update since it is part of an editable region. Is there any way
to do this? Without such a feature dynamic templates are rather limiting
since it would mean manually updating all of the templates using the menu
each time it is changed.
 
T

Thomas A. Rowe

You could insert the menu as FP Include into the DWT non-editable region. Note: The page to be
included my have the default HTML tags that are generated when FP creates a new page, and all
JavaScript functions must be after the opening <body> tag in the page to be included in the DWT.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

Thanks for your reply. I wasn't sure if you meant that any .htm include file
must have the tags that FP creates for the include to work, ie. FP strips
them off. I tried the include with just the html & javascript (included
after <body> tag as you suggested) actually needed to make the final page
technically correct. All looks OK in the .dwt file in design view but does
not appear when I preview the .dwt in the browser (IE6) nor in the .htm file
that I attach the .dwt to. I just see the Webbot include statements. What am
I doing wrong? Do I need to include the .htm as a .dwt file? I read somewhere
that include only works if you include like into like file formats. I checked
that my localhost site has FP server extensions in place.
--
TIA

The Jointer


Thomas A. Rowe said:
You could insert the menu as FP Include into the DWT non-editable region. Note: The page to be
included my have the default HTML tags that are generated when FP creates a new page, and all
JavaScript functions must be after the opening <body> tag in the page to be included in the DWT.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

1. Make sure you do not have Optimize HTML enabled when you publish.

2. The page to be included must be a standard HTML page (use the FP new page command) with the
normal set of HTML tags, and have either a .htm or .html file extension and then you would insert
your JavaScript after the opening body tag, as the FP include component only includes the content
that is between the body tags in other pages.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

The Jointer said:
Thanks for your reply. I wasn't sure if you meant that any .htm include file
must have the tags that FP creates for the include to work, ie. FP strips
them off. I tried the include with just the html & javascript (included
after <body> tag as you suggested) actually needed to make the final page
technically correct. All looks OK in the .dwt file in design view but does
not appear when I preview the .dwt in the browser (IE6) nor in the .htm file
that I attach the .dwt to. I just see the Webbot include statements. What am
I doing wrong? Do I need to include the .htm as a .dwt file? I read somewhere
that include only works if you include like into like file formats. I checked
that my localhost site has FP server extensions in place.
 
G

Guest

Thanks again for the prompt reply. Everything is now working correctly via
localhost on my machine. I haven't tried publishing to the web yet. I noticed
that whatever you put between the <body> tags in the included file gets
included verbatim. I used this to insert my own <body> tag for pre-loading
the button images by omitting the <body> tag from the file that I was
including into.
 
T

Thomas A. Rowe

Removing the <body> tag from the container file, make it a invalid file when you open it directly in
FP, so may lead to problems with editing the page in the future.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

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