User Tools

Site Tools


en:public:developer:template_system:urlresources

Differences

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

Link to this comparison view

en:public:developer:template_system:urlresources [2012/12/07 14:44]
admin
en:public:developer:template_system:urlresources [2015/09/24 23:07] (current)
svanderclock
Line 7: Line 7:
   [URL_ID|PAGE_ID]<Param1=a><Param2=b>..<ParamN=z>   [URL_ID|PAGE_ID]<Param1=a><Param2=b>..<ParamN=z>
   LANGUAGE_ID = URL_PATH   LANGUAGE_ID = URL_PATH
 +  LANGUAGE_ID = URL_PATH
 +  ...
 </code> </code>
  
Line 24: Line 26:
 that mean you have these 3 Page ID that mean you have these 3 Page ID
  
-  - /  +  - **/**  
-  - /about/  +  - **/about/**  
-  - /about/careers/ +  - **/about/careers/** 
  
 then in the UrlResources.txt you would have these 3 items : then in the UrlResources.txt you would have these 3 items :
Line 35: Line 37:
 FRA = / FRA = /
 RUS = / RUS = /
-USA = /+ENU = /
 PTG = / PTG = /
 ESP = / ESP = /
Line 43: Line 45:
 FRA = [/]a-propos/ FRA = [/]a-propos/
 RUS = [/]about/ RUS = [/]about/
-USA = [/]about/+ENU = [/]about/
 PTG = [/]about/ PTG = [/]about/
 ESP = [/]about/ ESP = [/]about/
Line 51: Line 53:
 FRA = [/about/]recrutement/ FRA = [/about/]recrutement/
 RUS = [/about/]careers/ RUS = [/about/]careers/
-USA = [/about/]careers/+ENU = [/about/]careers/
 PTG = [/about/]careers PTG = [/about/]careers
 ESP = [/about/]careers/ ESP = [/about/]careers/
Line 61: Line 63:
 be converted to FRA = **/a-propos/**recrutement/ be converted to FRA = **/a-propos/**recrutement/
  
-Another exemple with params :+Another more detailed exemple:
  
 <code> <code>
-[/real-estate/commercial/for-sale/]<url_property_category=2><url_transaction_type=1>+[ComForSale|/real-estate/commercial/for-sale/]<property_category=2><transaction_type=1>
 FRA = /immobilier/entreprise/vente/ FRA = /immobilier/entreprise/vente/
 RUS = /real-estate/commercial/for-sale/ RUS = /real-estate/commercial/for-sale/
-USA = /real-estate/commercial/for-sale/+ENU = /real-estate/commercial/for-sale/
 </code> </code>
  
-This instruct the engine that url_property_category = 2 (commercial) +This instruct the engine that variable **property_category = 2** (commercial) 
-and that url_transaction_type = 1 (for sale). these params can be used later +and **transaction_type = 1** (for sale). these variables can be used later 
-by the search engine to define the default property category and/or the +by the engine (or the templates) via <#[[en:public:developer:template_system:tags:url:TUrlInfos|UrlInfos]]> to define the default property category and/or the 
-default transaction type+default transaction type. Also here the **URL_ID = ComForSale** so it's mean that to  
 +retrieve the link from the  
 +<#[[en:public:developer:template_system:tags:url:url]]> tag you must use **ComForSale**  
 +for the Url_ID
  
 +The header line ([URL_ID|PAGE_ID]<Param1=a><Param2=b>..<ParamN=z>) can contain **special 
 +params** that will instruct the engine on with exact version (mobile, secure, etc) of the website 
 +the definition is for :
  
-URL_PATH can contain some tags like :   +^ Tag                                                                ^ Definition ^ 
-  * **<#url_https>**: 1 or 0 if protocol is https or not +<html><span style=&quot;color:#008000&quot;>&amp;lt;#https&amp;gt;</span></html1 if the url definitions is ONLY for HTTPS protocol. \\ 0 if ONLY for http protocol. \\ If ommited URL definition is for both protocol.\\ EX: [BaseHref]**<url_https=0>** | 
-  * **<#url_mobile&gt;**1 or 0 if mobile or not +<html><span style="color:#008000"&gt;&amp;lt;#mobile&amp;gt;</span&gt;</html| 1 if the url definitions is ONLY for mobile version\\ 0 if ONLY for desktop version\\ If ommited URL definition is for both version.\\ EX: [BaseHref]**<mobile=1>** 
-  * **<#url_property_id&gt;**: Id of the property + 
-  * **<#url_request_id>**: Id of the request +Each definition line (LANGUAGE_ID = URL_PATH) can contain some tags like for exemple :
-  * **&lt;#url_contact_id>**: Id of the contact +
-  * **&lt;#url_thread_id&gt;**: ID of the forum thread +
-  * **<#url_GeoPlace_Path parent_GeoPlace_ID="FR-241095-241110" Shorten="1"&gt;**:  +
-<code> +
-for /real-estate/for-sale/cannes/ url_GeoPlace_Path = cannes/  +
-  IF Shorten <1 then:  +
-    The ID of the geo place can be found without error thanks to the params parent_GeoPlace_ID +
-      IF parent_GeoPlace_ID = FR-241095-241110 (alpes-maritimes) then url_GeoPlace_Path = cannes/ +
-      IF parent_GeoPlace_ID = FR-241095 (provence-alpes-cote-d-azur) then url_GeoPlace_Path = alpes-maritimes/cannes/ +
-      IF parent_GeoPlace_ID = FR (france) then url_GeoPlace_Path = provence-alpes-cote-d-azur/alpes-maritimes/cannes/   +
-      IF parent_GeoPlace_ID = '',XW,XA,XE,XI,etc. (empty, world or continent) then url_GeoPlace_Path = france/provence-alpes-cote-d-azur/alpes-maritimes/cannes/ +
-  IF Shorten = 1 then:   +
-    url_GeoPlace_Path = cannes-241110/ (label-GeoPlaceID) +
-</code> +
-  * **<#url_GeoPlace_HaveChilds>**: or 0 if the geo_place point by the url_geo_label_path have childs +
-  * **<#url_PageNumber>**: The page number (ex: for /real-estate/for-sale/france/provence-alpes-cote-d-azur/alpes-maritimes/cannes/page2/ the page number is 2)  +
-  * **<#url_Propertylistings_type>**: The type of Property listings (Wide listings (1), My Ads listings (2), Member''s listings (3)) +
-  * **<#url_output_format>**: The format of the output (Html (1), Rss (2)) +
-  * **<#if condition="...true=&quot;...&quotfalse=";...&quot;&gt;**: Conditionally return the the value of true or false, depending on the condition +
-  * **<#caseof expression=&quot;..." statement_<1>="..." statement_<n>="...">**: Although, we can use the if statement for very complex (nested) condition testing, the caseof statement is usually easier to read (debug!) and the code runs more quickly +
-  * *****An asterisk matches any number of characters+
  
 +^ Tag                                                                ^ Definition ^
 +| <html><span style="color:#008000">&lt;#property_id&gt;</span></html> | The Id of the property. \\ Ex: ENU = [/minisite/v1/]**<#url_property_id>**/ |
 +| <html><span style="color:#008000">&lt;#propertyRequest_id&gt;</span></html> | Id of the property request. \\ Ex: ENU = [/alerts/]**<#url_propertyRequest_id>**/ |
 +| <html><span style="color:#008000">&lt;#contact_id&gt;</span></html> | Id of the contact. \\ Ex: ENU = [/blogs/members/]**<#url_contact_id>**/ |
  
 This file can contain also HTTP redirect mapping instructions. Ex This file can contain also HTTP redirect mapping instructions. Ex
Line 113: Line 104:
 PTG = [/forums/] PTG = [/forums/]
 RUS = [/forums/] RUS = [/forums/]
-USA = [/forums/]+ENU = [/forums/]
 </code> </code>
  
Line 119: Line 110:
  
 Also this file must contain some const declarations like Also this file must contain some const declarations like
-  * [BaseHref]: Specifies the base URL/target for all relative URLs;  +  * **[BaseHref]**: Specifies the base URL/target for all relative URLs;  
-  * [StaticContentBaseHref]: Specifies the base URL/target for all relative URLs that point to static files (like .jpg, .js, .css, etc.);  +  * **[StaticBaseHref]**: Specifies the base URL/target for all relative URLs that point to static files (like .jpg, .js, .css, etc.);  
-  * [PropertySearch]: Specifies the URL of the Search Engine +  * **[PropertyListings]**: Specifies the URL of the property listings 
-  * [PropertyListings]: Specifies the URL of the property listings +  * **[PropertyDetails]**: Specifies the URL of the property details 
-  * [PropertyDetails]: Specifies the URL of the property details +  * **[listings]**: The "listings" keywords 
-  * [listings]: The "listings" keywords +  * **[page]**: The "Page Number" keywords 
-  * [page]: The "Page Number" keywords +  * **[rss]**: The "rss" keywords
-  * [rss]: The "rss" keywords+
  
en/public/developer/template_system/urlresources.1354877055.txt.gz · Last modified: 2012/12/07 14:44 by admin