demo
templates
install
contact
Home Help BBCode Links

BBCode links

The major difference in [page=...] and [url=...] tags is that the "url" tag opens the target page in a new window, while "page" opens in the same browser window.

A few assumptions are made about a link, partly due to how Contentor processes the link, but primarily due to how HTML links are interpreted by web browsers. The "page" tag assumes that the link points to a page from the database, and therefore prefixes the name of the "index" script to the page name. The "url" tag assumes that the target is an actual web page (as opposed to a "page" in the database) and therefore passes the name of the page through without a prefix. Since all links on pages are referenced from a base of the site root, the URL link will end-up referencing a page relative to the home folder as found in the setup (_path_url), while the "page" tag will reference the "index" script located in that same folder.

Consider the following link to this page:

Page:
/help/BBCode/links - works as expected
    <a href="index/help/BBCode/links">/help/BBCode/links</a>
help/BBCode/links - not valid, run on to "index"
    <a href="indexhelp/BBCode/links">/help/BBCode/links</a>

Url:
/help/BBCode/links - expects an actual page
    <a href="/help/BBCode/links" target="_blank">/help/BBCode/links</a>
help/BBCode/links - same as above if this installation of Contentor is on the server/domain root folder.
    <a href="help/BBCode/links" target="_blank">help/BBCode/links</a>

To open a databased page in a hew window, include the entire URL (http://contentor.net/index/help/BBCode/links) or include the "index" in the "url" tag:

index/help/BBCode/links