This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > March 2006 > Editing a Template??
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Editing a Template??
|
|
|
| Sorry about my frustration at this point, I'm used to jEdit, where anything you
want, you do yourself, without the software having a say.
Anyway, I'm trying to reconstruct a template for one of my projects. So I
create a new template, and I use some of the code on existing pages to make it
- for instance, it begins with the first bit of code I attached to this
message. But everything beyond the tag <!-- InstanceBeginEditable
name="doctitle" --> is grayed out, preventing me from doing anything! I've
tried specifically opening the file for editing, with no luck at all. So when I
have a problem with the template (for instance, if a tag is unbalanced or if
it's nested within itself, I have no way at all to edit it, thanks to the
editor restraining me.
It can't work like this, what am I doing wrong?
Thanks,
Tom
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>main</title>
<!-- InstanceEndEditable --><link href="webstyles.css" rel="stylesheet"
type="text/css" />
<script language="Javascript" type="text/javascript"
src="stoplink.js"></script>
<!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable -->
</head>
| |
| Murray *ACE* 2006-03-26, 3:34 am |
| You have some child pages without the template? Is that the problem? And
you want to recreate the template?
You are using the wrong end of the stick if that's the case. Is it?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"tmcw" <webforumsuser@macromedia.com> wrote in message
news:e01jcd$fdi$1@forums.macromedia.com...
> Sorry about my frustration at this point, I'm used to jEdit, where
> anything you
> want, you do yourself, without the software having a say.
>
> Anyway, I'm trying to reconstruct a template for one of my projects. So I
> create a new template, and I use some of the code on existing pages to
> make it
> - for instance, it begins with the first bit of code I attached to this
> message. But everything beyond the tag <!-- InstanceBeginEditable
> name="doctitle" --> is grayed out, preventing me from doing anything! I've
> tried specifically opening the file for editing, with no luck at all. So
> when I
> have a problem with the template (for instance, if a tag is unbalanced or
> if
> it's nested within itself, I have no way at all to edit it, thanks to the
> editor restraining me.
>
> It can't work like this, what am I doing wrong?
>
> Thanks,
> Tom
>
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
> <meta name="MSSmartTagsPreventParsing" content="TRUE" />
> <!-- InstanceBeginEditable name="doctitle" -->
> <title>main</title>
> <!-- InstanceEndEditable --><link href="webstyles.css" rel="stylesheet"
> type="text/css" />
> <script language="Javascript" type="text/javascript"
> src="stoplink.js"></script>
> <!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable -->
>
> </head>
>
| |
|
| Here's the situation - the site was created with a template that I don't have.
It was lost in the transfer between designers. So each page has the tag <!--
InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false"
--> on it, but I don't have main.dwt. What I want to do is make main.dwt using
the format of the pages, but when I try to do that, Dreamweaver locks the
template from me editing it at all. So basically, none of the pages right now
have this template actually applied to them, but I'm trying to create it, from
those pages.
Get it? I'm trying to recreate a template that was lost, so that I can apply
it in the future to make changes to all the pages. But at this point just
editing the template is impossible for some unexplained reason.
| |
| Murray *ACE* 2006-03-26, 3:34 am |
| > Get it? I'm trying to recreate a template that was lost, so that I can
> apply
> it in the future to make changes to all the pages. But at this point just
> editing the template is impossible for some unexplained reason.
Yes. I understand. Please upload a child page or post a link to one that
is already uploaded so I can take a look at it. This job may be trivially
easy or impossible depending on what I see there.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"tmcw" <webforumsuser@macromedia.com> wrote in message
news:e01m66$iu6$1@forums.macromedia.com...
> Here's the situation - the site was created with a template that I don't
> have.
> It was lost in the transfer between designers. So each page has the tag
> <!--
> InstanceBegin template="/Templates/main.dwt"
> codeOutsideHTMLIsLocked="false"
> --> on it, but I don't have main.dwt. What I want to do is make main.dwt
> using
> the format of the pages, but when I try to do that, Dreamweaver locks the
> template from me editing it at all. So basically, none of the pages right
> now
> have this template actually applied to them, but I'm trying to create it,
> from
> those pages.
>
> Get it? I'm trying to recreate a template that was lost, so that I can
> apply
> it in the future to make changes to all the pages. But at this point just
> editing the template is impossible for some unexplained reason.
>
| |
|
| Okay.
The source for a template is attached, and a page is
http://www.decorides.com/present.htm
Thanks for the quick replies.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>main</title>
<!-- InstanceEndEditable --><link href="webstyles.css" rel="stylesheet"
type="text/css" />
<script language="Javascript" type="text/javascript"
src="stoplink.js"></script>
<!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable -->
</head>
<body>
<div id="containerbox"><div id="contentbox">
<!-- Image text replacement technique courtesy of
http://wellstyled.com/css-replace-text-by-image.html -->
<h1 id="logo">Deco<br />
Rides<span></span> </h1>
<div id="infobox">
Terry Cook, President<br />
PO Drawer G<br />
14 Schooley's Mt. Rd.<br />
Long Valley, NJ 07853<br />
908 876-9100<br />
fax 908 876-1692
</div>
<div id="textbox"> <!-- InstanceBeginEditable name="text" -->
<!-- InstanceEndEditable -->
<p> </p>
</div></div>
<div id="navbox">
<img src="images/styling.gif" alt="Styling is Everything" width="137"
height="78" />
<ul class="linklist">
<li><a href="past.htm">Past</a></li>
<li><a href="present.htm">Present</a></li>
<li><a href="future.htm">Future</a></li>
<li><a href="info.htm">Info</a></li>
<li><a href="whoisterrycook.htm">Bio</a></li>
<li><a href="contact.htm">Contact</a></li>
</ul>
<h3>Turnkey Cars Available</h3>
<ul class="linklist">
<li><a href="zephyr.htm">Speedster Motorcar Z-Series Zephyr</a></li>
<li><a href="auburnbt.htm">Replica Auburn Boattail Speedster</a></li>
<li><a href="dealerlist.htm">List of Dealers</a></li>
<li><a href="calendar.htm">Show Schedule</a></li>
<li><a href="financeap.htm">Financing Application</a></li>
</ul>
<h3>Car kits</h3>
<ul class="linklist">
<li><a href="foosebt.htm">Chip Foose Boattail Speedster</a></li>
</ul>
<h3>Past and Future Rides</h3>
<ul class="linklist">
<li><a href="scrapezephyr.htm">Scrape- Zephyr History</a></li>
<li><a href="zephyrmagic.htm">Zephyr Magic</a> </li>
<li><a href="carsforsale.htm">Cars for Sale</a></li>
<li><a href="partsforsale.htm">Parts for Sale</a></li>
<li><a href="sedandelivery.htm">Sedan Delivery</a></li>
<li><a href="pastcars.htm">Cars We've Owned</a></li>
<li><a href="zephyrkitsdone.htm">Finished Zephyrs</a></li>
<li><a href="carsunderconstruction.htm">Cars under Construction</a></li>
<li><a href="hotwheels.htm">Hot Wheels</a></li>
</ul>
<h3>Future Projects- The Drawing Board</h3>
<ul class="linklist">
<li><a href="duesenberg.htm">Duesenberg</a></li>
<li><a href="cord.htm">Cord</a></li>
<li><a href="delahaye.htm">Bugatti-Delahaye</a></li>
</ul>
<h3>About Deco Rides and Appleton Productions</h3>
<ul class="linklist">
<li><a href="missionstatement.htm">Mission Statement</a></li>
<li><a href="whoisterrycook.htm">Who is Terry Cook?</a></li>
<li><a href="testimonials.htm">Testimonials</a></li>
<li><a href="http://leadeast.net" target="_blank">Lead East-- World's
BIGGEST 50's Party!</a></li>
</ul>
<h3>Terry Cook's Articles</h3>
<ul class="linklist">
<li><a href="http://decorides.com/blog/index.htm">PTerrydactyl- An American
Hot Rodder (Blog)</a></li>
<li><a href="elementsofstyle.htm">Elements of Style</a></li>
<li><a href="europelowrider.htm">Europe by Lowrider</a></li>
<li><a href="prattbuick.htm">Lee Pratt's '41 Buick</a></li>
<li><a href="sonnychercad.htm">Saga of Sonny and Cher Cad</a></li>
<li><a href="boattailepic.htm">Boattail Epic</a></li>
</ul>
<p>Copyright 2005, Appleton Productions, all rights reserved.</p>
<ul class="linklist"><li><a href="credits.htm">Links and Credits</a></li>
<li><a href="info.htm">Site Map</a></li>
</ul>
<p><a href="http://kickasswebdesign.com" target="_blank">A KICKASS Web
Design!</a> </p>
</div>
</div>
</body>
<!-- InstanceEnd --></html>
| |
| Murray *ACE* 2006-03-26, 3:34 am |
| You are in luck. This should be childs play.
Here follows a road map (but just in case, make a backup of the site first).
Open any child page in the site and do the following -
Change each <!-- InstanceBeginEditable name="whatever" -->
to <!-- InstanceBeginEditable name="whatever" --><!-- Begin "whatever" -->
and each <!-- InstanceEndEditable -->
to
<!-- End ---><!-- InstanceEndEditable -->
Then use MODIFY | Templates > Detach from Template.
Now, use FILE | Save As Template, and save the page as main2.dwt.
Find each instance of <!-- Begin "whatever" --> and select it and everything
down to the corresponding <!-- End --> (inclusive) and use INSERT | Template
Objects > Editable Region. Name this region "whatever". Do this for the
three editable regions on that page.
Finally, remove the contents from the new editable region called "text", and
use FILE | Save As, to save this template as main.dwt.
That should be all you need to do. You now have your template.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"tmcw" <webforumsuser@macromedia.com> wrote in message
news:e01ouj$mil$1@forums.macromedia.com...
> Okay.
>
> The source for a template is attached, and a page is
> http://www.decorides.com/present.htm
>
> Thanks for the quick replies.
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
> <meta name="MSSmartTagsPreventParsing" content="TRUE" />
> <!-- InstanceBeginEditable name="doctitle" -->
> <title>main</title>
> <!-- InstanceEndEditable --><link href="webstyles.css" rel="stylesheet"
> type="text/css" />
> <script language="Javascript" type="text/javascript"
> src="stoplink.js"></script>
> <!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable -->
>
> </head>
>
> <body>
> <div id="containerbox"><div id="contentbox">
> <!-- Image text replacement technique courtesy of
> http://wellstyled.com/css-replace-text-by-image.html -->
> <h1 id="logo">Deco<br />
> Rides<span></span> </h1>
> <div id="infobox">
> Terry Cook, President<br />
> PO Drawer G<br />
> 14 Schooley's Mt. Rd.<br />
> Long Valley, NJ 07853<br />
> 908 876-9100<br />
> fax 908 876-1692
>
> </div>
> <div id="textbox"> <!-- InstanceBeginEditable name="text" -->
> <!-- InstanceEndEditable -->
> <p> </p>
> </div></div>
> <div id="navbox">
> <img src="images/styling.gif" alt="Styling is Everything" width="137"
> height="78" />
> <ul class="linklist">
> <li><a href="past.htm">Past</a></li>
> <li><a href="present.htm">Present</a></li>
> <li><a href="future.htm">Future</a></li>
> <li><a href="info.htm">Info</a></li>
> <li><a href="whoisterrycook.htm">Bio</a></li>
> <li><a href="contact.htm">Contact</a></li>
> </ul>
> <h3>Turnkey Cars Available</h3>
> <ul class="linklist">
> <li><a href="zephyr.htm">Speedster Motorcar Z-Series Zephyr</a></li>
> <li><a href="auburnbt.htm">Replica Auburn Boattail Speedster</a></li>
> <li><a href="dealerlist.htm">List of Dealers</a></li>
> <li><a href="calendar.htm">Show Schedule</a></li>
> <li><a href="financeap.htm">Financing Application</a></li>
> </ul>
> <h3>Car kits</h3>
> <ul class="linklist">
> <li><a href="foosebt.htm">Chip Foose Boattail Speedster</a></li>
> </ul>
> <h3>Past and Future Rides</h3>
> <ul class="linklist">
> <li><a href="scrapezephyr.htm">Scrape- Zephyr History</a></li>
> <li><a href="zephyrmagic.htm">Zephyr Magic</a> </li>
> <li><a href="carsforsale.htm">Cars for Sale</a></li>
> <li><a href="partsforsale.htm">Parts for Sale</a></li>
> <li><a href="sedandelivery.htm">Sedan Delivery</a></li>
> <li><a href="pastcars.htm">Cars We've Owned</a></li>
> <li><a href="zephyrkitsdone.htm">Finished Zephyrs</a></li>
> <li><a href="carsunderconstruction.htm">Cars under
> Construction</a></li>
> <li><a href="hotwheels.htm">Hot Wheels</a></li>
> </ul>
> <h3>Future Projects- The Drawing Board</h3>
> <ul class="linklist">
> <li><a href="duesenberg.htm">Duesenberg</a></li>
> <li><a href="cord.htm">Cord</a></li>
> <li><a href="delahaye.htm">Bugatti-Delahaye</a></li>
> </ul>
> <h3>About Deco Rides and Appleton Productions</h3>
> <ul class="linklist">
> <li><a href="missionstatement.htm">Mission Statement</a></li>
> <li><a href="whoisterrycook.htm">Who is Terry Cook?</a></li>
> <li><a href="testimonials.htm">Testimonials</a></li>
> <li><a href="http://leadeast.net" target="_blank">Lead East-- World's
> BIGGEST 50's Party!</a></li>
> </ul>
> <h3>Terry Cook's Articles</h3>
> <ul class="linklist">
> <li><a href="http://decorides.com/blog/index.htm">PTerrydactyl- An
> American
> Hot Rodder (Blog)</a></li>
> <li><a href="elementsofstyle.htm">Elements of Style</a></li>
> <li><a href="europelowrider.htm">Europe by Lowrider</a></li>
>
> <li><a href="prattbuick.htm">Lee Pratt's '41 Buick</a></li>
> <li><a href="sonnychercad.htm">Saga of Sonny and Cher Cad</a></li>
> <li><a href="boattailepic.htm">Boattail Epic</a></li>
> </ul>
> <p>Copyright 2005, Appleton Productions, all rights reserved.</p>
> <ul class="linklist"><li><a href="credits.htm">Links and Credits</a></li>
> <li><a href="info.htm">Site Map</a></li>
> </ul>
> <p><a href="http://kickasswebdesign.com" target="_blank">A KICKASS Web
> Design!</a> </p>
> </div>
> </div>
> </body>
> <!-- InstanceEnd --></html>
>
| |
|
| AArg. This is unbelievably restricting. Something must be wrong.
I can't immediately change the line <!-- InstanceBeginEditable name="whatever"
--> because it's grayed out, and I can't edit it at all. If I detach from
template, it deletes all of those commented lines - but when I add a new one,
it's immediately grayed out, so I can't edit it!!
| |
|
| use a text editor for this..
> AArg. This is unbelievably restricting. Something must be wrong.
>
| |
| Murray *ACE* 2006-03-28, 6:30 pm |
| Before you do something irreversible, what are you trying to do?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"tmcw" <webforumsuser@macromedia.com> wrote in message
news:e0bp80$v8$1@forums.macromedia.com...
> AArg. This is unbelievably restricting. Something must be wrong.
>
> I can't immediately change the line <!-- InstanceBeginEditable
> name="whatever"
> --> because it's grayed out, and I can't edit it at all. If I detach from
> template, it deletes all of those commented lines - but when I add a new
> one,
> it's immediately grayed out, so I can't edit it!!
>
| |
| Murray *ACE* 2006-03-28, 6:30 pm |
| Did you not see my step-by-step instructions for how to do this?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"tmcw" <webforumsuser@macromedia.com> wrote in message
news:e0bsgg$5f7$1@forums.macromedia.com...
> Maintainence of the site was passed to me from another webmaster who used
> Dreamweaver. So every page has comments which specify that they use the
> template "main.dwt". I don't have main.dwt in my possession. I'm trying to
> make
> it, so that I can edit the site from now on, and perhaps get Contribute to
> work
> with it.
>
> All I want do is make main.dwt and get all of the pages to use the new
> version
> of it. But DreamWeaver is preventing me from editing templates at all,
> making
> this simple task impossible.
>
> A sample page is here - http://decorides.com/present.htm
>
> It's hard to imagine that nobody has ever succeeded with this...
>
> or that it could be this difficult.
>
| |
|
| Yes... but I was stopped - it went like.
You are in luck. This should be childs play.
Here follows a road map (but just in case, make a backup of the site first).
Open any child page in the site and do the following -
DONE
Change each <!-- InstanceBeginEditable name="whatever" -->
--I can't edit this line or any of the other grayed out lines.
to <!-- InstanceBeginEditable name="whatever" --><!-- Begin "whatever" -->
and each <!-- InstanceEndEditable -->
to
<!-- End ---><!-- InstanceEndEditable -->
--I can't edit these lines!
Then use MODIFY | Templates > Detach from Template.
--This removes all of those comment lines. When I add a new new one, all of
the test beyond <!-- is no longer editable. This is the problem.
| |
| Murray *ACE* 2006-03-28, 6:30 pm |
| You are not reading my post accutately. Note, please that I am only
suggesting that you ADD content INSIDE the editable region markup. You will
have no trouble doing this.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"tmcw" <webforumsuser@macromedia.com> wrote in message
news:e0buvs$8n6$1@forums.macromedia.com...
> Yes... but I was stopped - it went like.
>
>
>
> You are in luck. This should be childs play.
>
> Here follows a road map (but just in case, make a backup of the site
> first).
>
> Open any child page in the site and do the following -
>
> DONE
>
> Change each <!-- InstanceBeginEditable name="whatever" -->
>
> --I can't edit this line or any of the other grayed out lines.
>
> to <!-- InstanceBeginEditable name="whatever" --><!-- Begin "whatever" -->
>
> and each <!-- InstanceEndEditable -->
>
> to
>
> <!-- End ---><!-- InstanceEndEditable -->
>
> --I can't edit these lines!
>
> Then use MODIFY | Templates > Detach from Template.
>
> --This removes all of those comment lines. When I add a new new one, all
> of
> the test beyond <!-- is no longer editable. This is the problem.
>
| |
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|