Yes, you can link between pages in Drupal. It's the same as not having Drupal, except the name may be weird if you're not using the Path module (URL Aliasing).

The biggest mistake people make is not knowing that there needs to be a leading slash ("/"). Omitting this will probably cause a "404:Page not found" error and, depending on which browser you're using, additional problems, like being logged out.

For example, if your home page on a site is node #4, a link to it would look like this: <a href="/node/4">Home</a>, but with URL aliasing turned on, you can also code it like this: <a href="/home">Home</a>

A picture could be embedded with this tag: <img src="/sites/default/files/pictures/WDP.jpg" align="right"/>

Comments

rpmskret’s picture

I wish provide input after following the above guide. The differences I found are
likely due to drupal version changes. I am using the current 6.11 version.

I tried to use an address similar to this guide page for img src and it couldn't work
that way. Had to do it like this:

<img src="sites/mysite.com/files/pictures/Docs/WDP.jpg" align="right" hspace="1" />

That worked. It needed that extra lead in from the root directory. In fact, the same approach is
needed for all links to all files. That is like a normal non-drupal approach. Only the drupal nodes
need the "/node/4" sort of address. Also, the "/" can not be used for the src. Then it won't work!
And for other links, it is optional.

update(aug19-2009): Images do not show up on all pages with a relative 'src' attribute if you are
using clean-urls. Please see my forum post at http://drupal.org/node/552656

jedilost’s picture

Hello,

I have been experimenting with Drupal 6.14 for some time, and i realized that using the leading "/" sign in any address reference causes error. not using the leading "/" sign does the job.

sunny adigarla’s picture

I have tried './' instead of '/' in Drupal 6.16. It works fine for clean URLs except for nodes while creating content.