Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #21 (permalink)  
Old July 30th, 2007, 03:58 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #22 (permalink)  
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
Reply With Quote
  #23 (permalink)  
Old July 30th, 2007, 04:17 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:09 PM.


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