web design training - templates library items

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Dreamweaver Training and help » web design training - How do you do it so that each link that you have made - automait

web design training - How do you do it so that each link that you have made - automait

resolvedResolved · Low Priority · Version Standard

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

Edited on Tue 14 Nov 2006, 15:28

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.

Edited on Tue 14 Nov 2006, 15:24

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

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Dreamweaver tip:

JumpMenu in new window

When inserting a jumpmenu to a page, the only option available for 'open in' is usually 'main window'. There would be other options available if the page was a frameset.

To change the jumpmenu to open in a new window, change the target parameter of the selectbox in your code to 'window.open()'.

eg.

<select name="menu1" onChange="MM_jumpMenu('window.open()',this,0)">


source:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16166& ;sliceId=1

View all Dreamweaver hints and tips


Server loaded in 0.07 secs.