![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I use Templates throughout my little site. The Templates are loaded with Library Items. I don?t know about anyone else but this is how I must work if I am to remain sane. |
|
This time the T added ?Library/? to every path so that when I previewed a page based on the T (or previewed the T iteself) and clicked a link - it went looking for the destination page inside the Library. |
|
I just had Dreamweaver MX2004/Mac do something very nasty to my work - but I resolved it and want to share the solution along with the problem. Today I made a tweek to a Library Item but the updated code was corrupted in the Template. The Template had ?added? an error that it passed on to the site?s pages. Very ugly. The way it?s supposed to work is...the links and paths in the LI are pasted ?as is? into the T and the T passes them on. This time the T added ?Library/? to every path so that when I previewed a page based on the T (or previewed the T iteself) and clicked a link - it went looking for the destination page inside the Library. ?Page Not Found? Central. Even LI?s that I had not updated were effected. I updated the TopNav bar but the links on the BtmNav bar were also messed up....the NightmareWeaver effect. When I check back on the code, the LI was correct but the Template and all it?s connected pages were not. If this happens to you try this - In the bad Template, do a ?Find? for ?Library/? ( or ?/Library/ as the case may be), then ?Replace? that added errant path with nothing - and then update the site pages. Be sure to upload all the effected pages, Templates, and LI?s to your Testing Server (another lesson learned the hard way) and then test. I hope this helps someone. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Murray - I am appalled to report that the fix I applied did not stick. When I opened the site again - the Template was corrupt AGAIN. DW is doing this on it's own. Here are the 2 files online. You can see how the paths are wrong and how the error carried over into the pages: http://www.newpixelcity.com/Library/topBnr_withDate.lbi and http://www.newpixelcity.com/Templates/303Template.dwt This is very disheartening. TIA your input. D |
#5
| |||
| |||
|
#6
| ||||||||
| ||||||||
|
|
Murray. Thanks for your reply. So that I understand - When I open a LBI from the Assets/Library, the links will be relative to that file. That is they will all have "../" in front of the target file name. |
|
But, when this LBI is inserted from Assets/Library into a Template based page, the links will be resolved automatically and "../"s will be removed as appropriate? |
|
Then I wonder how I got this far? |
|
It all worked until today. I have purposely not been writing code into blank LBI's. I have been copying code from "successful " pages into blank LBI's. |
|
I would work out the links, |
|
spacing, line breaks, line spacing, font size, etc on an html layout because, as you know, LBI's have no style link so you never know how things will look if you just look at it from the LBI design view. Have I missed something or is there a way to see the effect of CSS as you build an LBI? |
|
What is the correct workflow then? I want to take advantage of LBI and T but I don't want to layout page elements twice. |
|
D |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Thanks a ton for setting me straight. I'll have to get familiar with Design-Time Style sheets. D |
![]() |
| Thread Tools | |
| Display Modes | |
| |