Linking pages together in drupal
From ClubsWiki
In drupal there are multiple ways of linking pages together.
Contents |
Using hard links and nodes
- For example lets say you are trying to create a new menu item for a new gallery you have created there are two ways to do it.
Hard links
- The quickest way is to simply use the URL. For example, copy the URL from your browser for the gallery.
- After copying it simply paste the full URL into the path section.
- Note: This method is very easy, however it generally should be avoided. If the server or domain name were ever to change every single link would have to be corrected. For this reason the node method is preferred.
Nodes
- If you notice at the end of the URL presented it ends in node/9. This means that it is the 9th node created by drupal for this website. Drupal defines a node as:
* In Drupal, each item of content is called a node, and each node belongs to a single content type
- Simply put node/9 into the path section and it will link to the page. This is the preferred method because it works regardless of domain name and server. So if a campus organization decides to move their website to a new host all the hyperlinks will work.
Notes
- HTML works as expected when making general posts. For example <a href="www.uci.edu">UC Irvine</a> will create a link to UC Irvine's website as expected.