Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<2.2.7. Installation Compatibility Issues        2.2.8.1. Creating Links to Issues, Sections, etc.>

Print / Download:
Available languages: english Last update: 2005-10-12 17:25:46

2.2.8. New Template Statements and "Short Name" URLs

Table of Contents
2.2.8.1. Creating Links to Issues, Sections, etc.
2.2.8.2. Creating a Link to a Template

Campsite 2.2.x/2.3.x supports the following new statements: URI and URIPath. You can find the full description in the chapter "URL, Form". These statements help you build a new type of URL: the one called short name. It comes from the fact that each issue/ section/ article has a short name. A short name based URL would look like:

http://test.com/en/may30/news/summer_is_coming

where:

  • test.com is the publication's site name

  • en is the publication's language code

  • may30 is the latest issue number

  • news is the section short name

  • summer_is_coming is the article short name

To produce such a link you only have to write the following:

<a href=”<!** URI>”>text</a>

This is equivalent to:

<a href=”<!** URIPath>?<!** URLParameters>”>text</a>

URIPath displays the 'path' part of the URI: /en/may30/news/summer_is_coming. URLParameters displays the rest of the parameters if any. URI combines both these statements. All these statements work for both old style URLs (named template path) and new type of URLs (named short name).


add a note add a note User Contributed Notes
2.2.8. New Template Statements and "Short Name" URLs
There are no user contributed notes for this page.

<2.2.7. Installation Compatibility Issues 2.2.8.1. Creating Links to Issues, Sections, etc.>

  Last update: 2005-10-12 17:25:46
Website powered by Docmint Last update: 2005-10-12 17:25:46
Total page time: 0.751763105392