How do you do it so that each link that you have made - automait
Hi there,
Great idea for assisting previous students.
O.k so how do you do it so that each link that you have made - automatically updates when working on a another new page.
For example you create one page of links - later you use the same page to add differnts elements and this becoems page two - you then go back to page one and decide to make active a word that was not previously linked. You want the new link to also show up on page two at the same place without having to manually do this again on page two.
Is that possible?
Hope to hear from you soon
RE: how do you do it so that each link that you have made - auto
Here are two methods for achieving this, depending on your web site setup.
Templates
You could put all the links on one page and save the page as a template. You can then create pages from the template. All links will then automatically in place. This method is only useful if you want to change or ensure that the links appear on ALL pages.
Library items
If you want to create a group of links and then have those links appearing on multiple pages throughout your site, you could create a library item containing those links. Include the library item on all appropriate pages.
Library items can be found on the Dreamweaver assets panel.
Include files
Hi Jaytees,
If you are using PHP, ASP or nearly any other server side scripting technologies, another way of doing this is having an 'include' file.
So you might store all your links as HTML in my_links.htm
Then for .SHTML files, you have a line of code like this
<!--#include virtual="my_links.htm" -->
which will virtually import my_links.htm at the time users look at your web page.
For .PHP files, it would be similar to this
<?php include ("my_links.htm"); ?>
And from then on, you only ever have to update my_links.htm
Regards, Rich