12

Links / hyperlinks

Definition

A link can refer to:

  • a URL outside the current site
  • a page within the current site
  • a specific position in a page, inside or outside the current site

A link can be put on different types of elements.

Use

A target outside the site

It requires the full URL of the target (like http://www.websico.com/p75.html). It is usually open in a new window when possible (rich text).

Inside the current site

Use only the last part of the page URL (eg. p75.html). Target page is usually open in the same window.

A position in a page

It can refer to any identified HTML element. It requires two operations: one on the source, the other in the target HTML text.

Source: 
create a link to something inside or outside the current site, and add '#target' to the URL (eg. p75.html#anchor1)

Target HTML text: if the wanted target is not identified (id="xxx"), create a raw text just before the wanted target and insert:
<a id="target"></a> (eg. <a id="anchor1"></a>)

Special cases

The address of the homepage of a site can be designated with a simple "/" for the main language and "/fr" for example if "fr" is used language.


In a multilingual website, it is not necessary to specify the language in the address, except to change it.

Example:
- to create a link from page .../fr/p75.html to page .../fr/p56.html, just use the last part of the address "p56.html", the system remains in the language of the original page.

- to create a link from page .../fr/p75.html to page to .../en/p56.html, use "/en/p56.html".

Appearence links

The links have their own appearance, distinct from classical text. See appearance settings.
Site management