SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2001
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing a link sitewide in Dreamweaver

    I need to rename a page link on a large web site.

    How can I do this in DW without going through each page that carries this link?

    Thanks,
    Herman Drost
    http://www.isitebuild.com
    Affordable Web Site Design
    and Web Site Hosting

  2. #2
    SitePoint Guru biggazillakilla's Avatar
    Join Date
    Aug 2003
    Location
    San Francisco USA
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Find and replace would work really well for this, assuming you have all the files on your hard drive. Just make sure you search the source, not the pages.

  3. #3
    The knight who said ni! RockyShark's Avatar
    Join Date
    Apr 2003
    Location
    Rockhampton, Australia
    Posts
    699
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the site is set up in Dreamweaver it will do it all for you. Right click the file in DW, choose rename, and when you've given it the new name DW will ask you if you want to update the site. Choose yes. Done!

  4. #4
    SitePoint Guru biggazillakilla's Avatar
    Join Date
    Aug 2003
    Location
    San Francisco USA
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That will work if the link is to a page in the site (for example, if you're moving files around, or renaming them).

    If it's to an external page, then that won't work.

  5. #5
    The knight who said ni! RockyShark's Avatar
    Join Date
    Apr 2003
    Location
    Rockhampton, Australia
    Posts
    699
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, sorry, I just re-read the origonal post and my answer doesn't answer the question! Oops!

  6. #6
    Ensure you finish what you sta bronze trophy John Colby's Avatar
    Join Date
    Aug 2003
    Location
    University of Central England, U.K.
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you have a lot of links to replace (i.e. more than one change) try BKreplace em from http://www.orbit.org/replace/ which scripts changes over a whole directory structure.
    John
    No electrons were harmed during the creation, transmission
    or reading of this posting. However, many were excited and
    some may have enjoyed the experience.

  7. #7
    SitePoint Zealot
    Join Date
    Feb 2003
    Location
    Upstate NY
    Posts
    197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some text editors can do this as well. I have UltraEdit, and you can search and replace in directories for strings using regex. Very handy. I've used this to change filenames, recurring text within a directory (copied IE links that needed IP changes) and more.
    If you're using Dreamweaver, though, the easiest is to use the program as suggested above.

  8. #8
    SitePoint Evangelist
    Join Date
    Jan 2001
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great - thanks for all your replies.
    Herman Drost
    http://www.isitebuild.com
    Affordable Web Site Design
    and Web Site Hosting

  9. #9
    SitePoint Evangelist
    Join Date
    Jan 2001
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Follow up question:

    How can I determine the path for particular page to change the link?

    I wish to rename links.php to area.php

    I am using "Changing links sitewide" and it's asking for the path rather than the individual file ie links.php doesn't work when inserted.

    Please advise
    Herman Drost
    http://www.isitebuild.com
    Affordable Web Site Design
    and Web Site Hosting


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •