Forum Moderators: open
<html>
and replace this with
<html>
<!-- #BeginTemplate "/Templates/YOURTEMPLATE.dwt" -->
and so on, for all the template commands. I would suggest you look at the source code on a template applied page and see where Dreamweaver inserts the code and look for common ground as in the above example.
This does work on simple page structures, but there may not be enough similarities on more complicated pages, in which case, you may have to do several different sets of find and replace or in fact, there may be too many to even make it worth the while.
You must try it on one or two test pages first and of course, make a complete backup before you start, as it could be quite a risky operation.
There may of course be better solutions and I have assumed the pages you want to add the template to do not already have a Dreamweaver template attached, but if they do, then there may be other ways to do this.
I tried all the obvious options where I selected and/or opened multiple pages and tried to apply the template to them all at once but the drop down menu option only applies it to one page at a time.
Even shortcut keys might make it a little less ardous.
Thanks,
Jas0n
My own experience with the MX version is that it's a lot pickier when it comes to changing code outside its environment and then later expect it to work inside the app.
<html>All that does is apply the template link that DW will recognize, but it doesn't include the actual template. You would still need to edit the rest of the source to mark the editable and non-editable regions with the proper tags for any changes to occur.and replace this with
<html>
<!-- #BeginTemplate "/Templates/YOURTEMPLATE.dwt" -->
I have been having this problem recently,
with loads of bad code that I wrote earlier haunting me now.
If you are trying to change an existing template, you can just save it as the same name as what your old template was.
I think that you are trying to apply it to pages that DON'T yet have any template though, and I did that recently myself for about 200+ pages. I would like to know if there is a shortcut for future projects, as it would have saved quite a bit of time.
Yes, this is what I was looking for. But that's over and done with now. We did it the tedious way of applying the template to each and every page one by one by one by...
It's really stupid they don't have an easier way to apply the templates "en masse"
While I'm on my soapbox, their "remove template" feature leaves a little bit to be desired as well because it leaves all the template code on the page--- it just removes its "active connection" to the source template and lets you then edit what were formerly template regions. I would prefer to have it remove all traces of the template so the page was in its "pre-template" condition.
stepping down now...
Jas0n
Will some of the experts please dig a little with me to confirm whether or not this is or is not possible?
If it is not possible, what are the best work-arounds that you can come up with?