HighDots Forums  

Template Troubles

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Template Troubles in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
camelbreath
 
Posts: n/a

Default Template Troubles - 07-16-2008 , 07:22 AM






http://www.jdcdemo.com/ron/index.html
I am designing some interior store graphics for a client and set up a small
site so he and his wife could look at work in progress on their I-phones. That
part works fine. (The pictures are composites with graphics inserted to
construction shots.)

I set up the site and did a template for the pages with the pictures. I saved
the template originally as a template and then later added the P7 menu to make
it a bit easier to navigate. It appeared that DW did not care too much for that
move, so I went back in and re-did the pages from the modified template with
the menu and somehow managed to screw up the code to the point that I can't
name the pages and am stuck with "untitled" for all of my page titles. Then I
added the menu to the index page, which is not generated from the template and
managed to keep the page title.

I've put this subject up before and got some good advice, but somehow, I have
managed to muddle it. This is not a critical site, but my screwing up the page
titling is. I am obviously doing something wrong with my template protocol. Can
someone tell me where I went wrong, is there a fix and if so, how to do the fix.

I am relatively new to DWCS3, not the sharpest knife in the drawer on code and
willing to learn, but sometimes have to have my nose shoved into new knowledge,

TIA,
Joe




Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Template Troubles - 07-16-2008 , 07:41 AM






Quote:
It appeared that DW did not care too much for that move
It would probably be more accurate to say that DW did not care too much for
the way you implemented that change. The PVII menus are completely usable
when it comes to templates, and their inclusion should not cause any such
problems.

Quote:
somehow managed to screw up the code to the point that I can't
name the pages and am stuck with "untitled" for all of my page titles
You probably just deleted the editable region around the <title> tag from
the sound of this, which makes one wonder what else you might have
scrambled.

Quote:
Can someone tell me where I went wrong, is there a fix and if so, how to
do the fix.
Create a new Blank HTML page in DW. Immediately use FILE | Save As
Template..., and save it. LOOK at the code. Make sure that your legacy
template pages have exactly the same template markup in exactly the same
place (in the head region) as this new template.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"camelbreath" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
http://www.jdcdemo.com/ron/index.html
I am designing some interior store graphics for a client and set up a
small
site so he and his wife could look at work in progress on their I-phones.
That
part works fine. (The pictures are composites with graphics inserted to
construction shots.)

I set up the site and did a template for the pages with the pictures. I
saved
the template originally as a template and then later added the P7 menu to
make
it a bit easier to navigate. It appeared that DW did not care too much for
that
move, so I went back in and re-did the pages from the modified template
with
the menu and somehow managed to screw up the code to the point that I
can't
name the pages and am stuck with "untitled" for all of my page titles.
Then I
added the menu to the index page, which is not generated from the template
and
managed to keep the page title.

I've put this subject up before and got some good advice, but somehow, I
have
managed to muddle it. This is not a critical site, but my screwing up the
page
titling is. I am obviously doing something wrong with my template
protocol. Can
someone tell me where I went wrong, is there a fix and if so, how to do
the fix.

I am relatively new to DWCS3, not the sharpest knife in the drawer on code
and
willing to learn, but sometimes have to have my nose shoved into new
knowledge,

TIA,
Joe





Reply With Quote
  #3  
Old   
camelbreath
 
Posts: n/a

Default Re: Template Troubles - 07-16-2008 , 09:39 AM



Well, I created a new file, added editable areas and saved it as a template in
the template folder as a dwt. Then reopened it, added (recreated, not copied
and pasted) the P7 menu and saved it again with the dwt extension. Then
selected "new from template" entered the title, test, saved as test.html and
saved it and opened it again and the dreaded untitled was there again.

Then went into the template file again and added a link to the menu and saved.
When it tried to update test.html I got this error message: Error accessing
"F\client A-L\lusby\lusby-proofing\ron\page-2.dwt: bad file path (error code 2).
The path is the location of the template file.
As far as I can tell, I followed the procedure of creating the template file
and immediately saving it as a template file after completing it.
What am I doing wrong?
Thanks,
Joe



Reply With Quote
  #4  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Template Troubles - 07-16-2008 , 09:48 AM



Quote:
Well, I created a new file, added editable areas and saved it as a
template in
the template folder as a dwt.
There's your mistake. Never save templates this way. Always use the FILE |
Save As Template... menu option.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"camelbreath" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Well, I created a new file, added editable areas and saved it as a
template in
the template folder as a dwt. Then reopened it, added (recreated, not
copied
and pasted) the P7 menu and saved it again with the dwt extension. Then
selected "new from template" entered the title, test, saved as test.html
and
saved it and opened it again and the dreaded untitled was there again.

Then went into the template file again and added a link to the menu and
saved.
When it tried to update test.html I got this error message: Error
accessing
"F\client A-L\lusby\lusby-proofing\ron\page-2.dwt: bad file path (error
code 2).
The path is the location of the template file.
As far as I can tell, I followed the procedure of creating the template
file
and immediately saving it as a template file after completing it.
What am I doing wrong?
Thanks,
Joe




Reply With Quote
  #5  
Old   
camelbreath
 
Posts: n/a

Default Re: Template Troubles - 07-16-2008 , 10:14 AM



Well Murray, there you have it, the root of the problem is operating the keyboard. Thanks!!!!!!!!!!!!!!!!!!!
Joe

Reply With Quote
  #6  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Template Troubles - 07-16-2008 , 10:17 AM



Yep. You'd be amazed how many people save templates the way you did,
completely ignoring that other obvious (and correct) option on the menu.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"camelbreath" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Well Murray, there you have it, the root of the problem is operating the
keyboard. Thanks!!!!!!!!!!!!!!!!!!!
Joe


Reply With Quote
  #7  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Template Troubles - 07-16-2008 , 10:46 AM



Yeah- but NOW IT WORKS.... Try it.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Malcolm _" <malcom (AT) mon (DOT) org> wrote

Quote:
On Wed, 16 Jul 2008 10:17:39 -0400, "Murray *ACE*"
forums (AT) HAHAgreat-web-sights (DOT) com> wrote:

Yep. You'd be amazed how many people save templates the way you did,
completely ignoring that other obvious (and correct) option on the menu.


Murray - unfortunately Adobe have still left this option in Dw CS4
beta.

File | Save As |

and under Save as type - there is still the option to save as a dwt ??
I sent a feature request to them ages ago - you may remember you were
surprised it was still in CS3.

Adobe are slowly closes some of these traps for the unwary - but there
are still far too many.


--

~Malcolm~*...
~*


Reply With Quote
  #8  
Old   
chicken-lady
 
Posts: n/a

Default Re: Template Troubles - 07-16-2008 , 01:34 PM



Have you tried using editable regions for the parts of your template that you want to change on each page?

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.