User Tools

Site Tools


en:public:developer:template_system:tags:url:url

<#url>

This tag return the current url or the url assigned to a given ID.

Parameters

Name Default Description
Id ID of the current page the ID of the URL like ”/members/profile/”
ifNotFound ”/” if ID was not given the ID of the page to use (instead of ID) if no url found for ID
Mobile Calculated from the current location Specify if the url will point to a mobile version
Language Calculated from the current location Specify the language that the url will point to
Https Calculated from the current location Specify if the url will be secure (https) or not (http)
PropertyListings_Type Specify the type of property listings to place in the url
Output_Format Specify the desired format of the output (HTML or RSS) to place in the url.
Transac_ID ID of the transaction (property) to place in the url
Request_ID ID of the request (alert) to place in the url
Contact_ID ID of the contact to place in the url
Thread_ID ID of the forum thread to place in the url
GeoPlace_ID ID of the Geo Place to place in the url
GeoPlace_URL Calculated from GeoPlace_ID URL of the Geo Place to place in the url
GeoPlace_HaveChilds Calculated from GeoPlace_ID If the Geo Place have some childs
PageNumber The page number to place in the url
Transac_kind ID of the transac kind label to place in the url
Property_Category ID of the property category label to place in the url
Property_SubCategory ID of the property sub category label to place in the url
Property_Kind ID of the property kind label to place in the url
AddHTTPQuery Include in the result url the current HTTP Get/post Params
Canonical Return the canonical url (use CanonicalHttpQueryParams in cfgpages to define with http query parameters to include/exclure from the canonical url)
Regex_groups When url contain regex groups (like for exemple /path/(?<groupname>.*).php) then you can use Regex_groups to replace the regex expression. ex for /path/(?<scriptname>.*).php if you gave Regex_groups=“scriptname=MyScript” then the outputing url will be /path/MyScript.php. You can specify several groupname=value by separating them with the ';' character

urlresources configuration

The urlresources configuration file must contain the definition of the ID of all the Urls for all versions (mobile, secure, language) of the website. Ex :

[/about/partnership/]
DEU = [/about/]partnership/
ESP = [/about/]partnership/
FRA = [/about/]partenariat/
PTG = [/about/]partnership/
RUS = [/about/]partnership/
USA = [/about/]partnership/

Example

<#url id="/about/partnership/">
en/public/developer/template_system/tags/url/url.txt · Last modified: 2013/03/06 00:31 by admin