A question about links not updating correctly via Dreamweaver templates…

15 pts.
Tags:
Dreamweaver CS3
Folders
LINKS
templates
Hi, This is going to be a long winded question so bare wuth me :) I am using Dreamweaver CS3 and working with templates. I have 2 templates "details page" and "pages". I created a folder containing pages based off both templates and named the folder "duplicate_for_entry. In the folder there contains 21 webpages. 1 based off "details page" and 20 based off "pages". The files based on the "pages" template were renamed to "page1" "page2" and so on. These pages have links linking to each other within an editable region. The links are based on a "next" and "previous", for instance the details page being the first page has a "next" link pointing to "page1" and "page1" has "previous" poining to the "details" page and "next" pointing to "page2" and so on. I use this folder when I want to create a new entry into my website. I duplicate the folder and then rename it to the article contained in the folder. My problem here is when I duplicate the folder all the links in the folder are pointing to the files in the duplicated folder "copy of duplicate for entry" and there is nothing wrong. BUT when I rename the folder to the name of the article, for arguments sake I will call this folder say "article" the links do not point to files inside "article" folder they remain pointing to "copy of duplicate this for entry". Meaning that these links do not update even when I tell dreamweaver to update links, it ignores the "next" and "previous" links. Needless to say this has become very frustrating as it does create more work for me having to go into the folder and redo all the links. My question is, Is there a way to make the links update properly? Or is there a workaround that I can use that may help me do this faster or more efficiently than the current method I am using?

Software/Hardware used:
Dreamweaver

Answer Wiki

Thanks. We'll let you know when a new response is added.

if you are uploading all the pages to the same folder you should not hardcode the links to each page.

eg if you had a 3 page website

with links

home that you have linked to “http://www.yourwebsite/home.htm”
about that you have linked to “http://www.yourwebsite/about.htm”
contactthat you have linked to “http://www.yourwebsite/contact.htm”

then if you move this website about the links will break so link them as:

home that you have linked to “./home.htm”
about that you have linked to “./about.htm”
contactthat you have linked to “./contact.htm”

Then as long as the files stay in the same folder they will always work.

Is that what you meant?

Thanks
Rick

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Steveykk
    ok so i tried what you said, and unfortunately it didn't work. Dreamweaver starts adding another forward slash to it and the links stops working altogether. This site right now is stored locally by the way not remotely as I don't want to upload something that is broken :) I fix the links before uploading it. Thanks for the answer though it is much appreciated. I think I may have to just put up with the links breaking and manually fix them. Unless something drastic changes dreamweaver in the next update.
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following