Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2007, 03:58 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

What do you mean with: but I cannot seem to find a way to duplicate the template and save as htm.

If you're making static pages, you can simply use a Search nd Replace tool to remove all the references to the templates. Or you can use Modify | Templates | Remove Markup or Modify | Templates | Export without markup.

HtH,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old July 30th, 2007, 04:10 PM
Registered User
 
Join Date: Jul 2007
Location: Savannah, GA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I want the templates to apply to the relevant pages, but I need them to be .htm templates instead of dwt.asp templates as I originally created them. I tried taking out the script line at the top of the template, but I got in trouble with DW telling me I had nested editable areas, etc.

Here's what I need for example. I have a template called main.dwt.asp. I need to save it as htm. I am not sure whether dreamweaver adds that dwt.htm as it does with .asp.

What I have been doing is going into the asp templates and taking out that initial script language, then dreamweaver tells me I need to add
 in the <head> in the dobe. I have done that but may be putting it in the wrong place. I am a code dunce and know just little enough to be dangerous.

Does this make any sense?


Tom Jones
 
Old July 30th, 2007, 04:17 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Here's what I would try:

1. Manually rename the file *.dwt.asp to *.dwt.htm

2. Use an *external* Search and Replace tool to search in all your files and replace them with the new template file name.

BTW: Templates are a design time thing. They are embedded in the page as HTML comments, so even a server that doesn't understand ASP shouldn't have a problem with them at run-time.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying Template-based pages ychange Dreamweaver (all versions) 1 March 22nd, 2007 01:55 AM
Convert a batch file to run in VBscript - WSH issu malcomm VBScript 0 October 25th, 2006 12:35 AM
convert asp pages to xhtml BrendonMelville HTML Code Clinic 1 March 14th, 2006 01:52 PM
convert asp pages to xhtml BrendonMelville XML 1 March 14th, 2006 11:34 AM
HTM pages with dynamic content madhukp Classic ASP Basics 3 June 10th, 2004 03:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.