• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Da Link’s Da Ting

What’s the number-one problem folks have with templates? Links. Web designers used to coding links by hand are frequently tripped up when working with templates. Here’s why: When a document is derived from the template, Dreamweaver automatically adjusts the links so that they point to the proper file. But for Dreamweaver to handle this operation correctly, the links must point to the right file from the template itself (which is stored in the Templates folder, in the site root). A common mistake is to try to create a link to a file as though the template were the derived document. Here’s an example. Let’s say famed designer Joe Schmoe is working with a Dreamweaver template and creates a link to a widgets.html page in the Products folder.Joe thinks, “I know the pages I’m going to create from this template will all be located in the root folder, and the Products folder is also in the root, so I’ll just write in the link like this, Products/widgets.html.“ I’m afraid Mr.Schmoe has made a faux pas. The correct link in the template would be ../Products/widgets.html—which Dreamweaver would convert to Products/widgets.html in a document derived from the template. The best way to ensure that you are assigning the correct links in a template is to always use the Browse for File or Point to File options found on the Property inspector next to the Link field. If you’re linking to a file that doesn’t exist yet, use Browse for File to link to another file in the same folder and change the file’s name by hand.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint