User Tools

Site Tools


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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:public:developer:template_system:tags:url:url [2013/01/19 20:30]
admin [Parameters]
en:public:developer:template_system:tags:url:url [2013/03/06 00:31] (current)
admin [Parameters]
Line 1: Line 1:
-===== <#url> =====+====== <#url> ======
  
-This tag return the current url or the url assigned to a given ID. By default the result will be http Encoded unless +This tag return the current url or the url assigned to a given ID.
-the global parameter [[en:public:developer:template_system:tags:parameters:HttpEncode]] is set to 0+
 ==== Parameters ==== ==== Parameters ====
  
 ^ Name                                                                  ^ Default ^ Description ^        ^ Name                                                                  ^ Default ^ Description ^       
-| <html><span style="color:#008000">id</span></html>                    | ID of the current page | the ID of the URL like "/members/profile/" |+| <html><span style="color:#008000">Id</span></html>                    | ID of the current page | the ID of the URL like "/members/profile/" 
 +| <html><span style="color:#008000">ifNotFound</span></html>            | "/" if ID was not given | the ID of the page to use (instead of ID) if no url found for ID |
 | <html><span style="color:#008000">Mobile</span></html>                | Calculated from the current location | Specify if the url will point to a mobile version | | <html><span style="color:#008000">Mobile</span></html>                | Calculated from the current location | Specify if the url will point to a mobile version |
 | <html><span style="color:#008000">Language</span></html>              | Calculated from the current location | Specify the language that the url will point to | | <html><span style="color:#008000">Language</span></html>              | Calculated from the current location | Specify the language that the url will point to |
Line 25: Line 25:
 | <html><span style="color:#008000">Property_Kind</span></html>         | | ID of the property kind label to place in the url | | <html><span style="color:#008000">Property_Kind</span></html>         | | ID of the property kind label to place in the url |
 | <html><span style="color:#008000">AddHTTPQuery</span></html>          | | Include in the result url the current HTTP Get/post Params | | <html><span style="color:#008000">AddHTTPQuery</span></html>          | | Include in the result url the current HTTP Get/post Params |
 +| <html><span style="color:#008000">Canonical</span></html>             | | Return the canonical url (use **CanonicalHttpQueryParams** in [[en:public:developer:template_system:cfgpages]] to define with http query parameters to include/exclure from the canonical url) |
 +| <html><span style="color:#008000">Regex_groups</span></html>          | | 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 ==== ==== urlresources configuration ====
    
-the [[en:public:developer:template_system:urlresources]] configuration file must contain the definition of the ID of all the Urls for all versions (mobile, secure, language) of the website. Ex :+The [[en:public:developer:template_system:urlresources]] configuration file  
 +must contain the definition of the ID of all the Urls for all versions  
 +(mobile, secure, language) of the website. Ex :
  
 <code> <code>
en/public/developer/template_system/tags/url/url.1358613058.txt.gz · Last modified: 2013/01/19 20:30 by admin