chill888 said:
Hi,
I'm using FP 2003 with dynamic templates. My problem is that everytime
I update the template, it changes/overwrites the Meta Tags on all the
pages linked to the template. How do I create page specific Meta Tags
for pages linked to DWTs?
Thanks and regards,
I suggest you have a read of the two part article below
http://www.outfront.net/tutorials_02/fp_techniques/dwt-1.htm
http://www.outfront.net/tutorials_02/fp_techniques/dwt-2.htm
I've snipped the relelvent part for you, (see below) it's very easy to do.
Let me know if this helps
Tina
Tip now out is: THUMBS.DB AND FRONTPAGE
http://frontpage-tips.com/ - FrontPage Tips
They are primarily for FrontPage 2003 but will be good
for earlier versions too.
FrontPage will, by default add the following code to the title tag in Code
View.
<!-- #BeginEditable "doctitle" -->
<title>Page Title Here</title>
<!-- #EndEditable -->
Copy the editable code in Code View and encase it around the Keywords and
Description Meta tags, it should look like the following.
<!-- #BeginEditable "doctitle" -->
<title>Page Title Here</title>
<!-- #EndEditable -->
<!-- #BeginEditable "keywords" -->
<meta name="KEYWORDS" content="site keywords here">
<!-- #EndEditable -->
<!-- #BeginEditable "description" -->
<meta name="DESCRIPTION" content="site description here">
<!-- #EndEditable -->
This will preserve keywords and descriptions you ALREADY have in place on
your pages. If you want to change your title, keywords or descriptions you
can right click on the page and choose Page Properties or go to Code View
and do it manually.
WARNING: With a page that has a DWT attached you must not use FrontPage Meta
Tag addons to APPLY your tags, as they will change the editable regions
coding of the meta tags and the FrontPage DWT will assume you are trying to
change this and ask you to save or restore. You want to in fact keep your
original code with the editable meta tags around the meta's. Of course you
can use the Addons as a tool and copy and paste meta tag to code view or in
page properties General Tab for each Meta. The developers know about this
problem and are working to provide updates.
~ Scripts such as _JavaScript (scripting)
If you have any scripts within the head tags when you first attach a dwt to
a page it won't be preserved. So you must save it to a notepad file, attach
the dwt to a page, and then reinsert your script, thereafter it will be
applied to any subsequent attachments. Put the following code around each of
your scripts in the head tag.
<!-- #BeginEditable "scripting" -->
<!-- Scripting area here -->
<!-- #EndEditable -->
This is really useful for _JavaScript menus. Using these menus with a dwt
saves you a lot of time. There are issues however be sure to see the *
Troubleshooting section.
~ ASP Pages
It is best to avoid attaching a dwt to a page with ASP code on it, though
you can attach to a .asp page that does not have asp coding on it.