This shows you the differences between two versions of the page.
en:public:developer:template_system:urlresources [2012/12/07 14:51] 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 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 64: | Line 66: | ||
<code> | <code> | ||
- | [ComForSale|/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 variable **url_property_category = 2** (commercial) | + | This instruct the engine that variable **property_category = 2** (commercial) |
- | and **url_transaction_type = 1** (for sale). these variables can be used later | + | and **transaction_type = 1** (for sale). these variables can be used later |
- | by the engine (or the templates) 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. Also here the URL_id = **ComForSale** so it's mean that to | + | default transaction type. Also here the **URL_ID = ComForSale** so it's mean that to |
retrieve the link from the | retrieve the link from the | ||
<#[[en:public:developer:template_system:tags:url:url]]> tag you must use **ComForSale** | <#[[en:public:developer:template_system:tags:url:url]]> tag you must use **ComForSale** | ||
for the Url_ID | for the Url_ID | ||
- | URL_PATH can contain some tags like : | + | The header line ([URL_ID|PAGE_ID]<Param1=a><Param2=b>..<ParamN=z>) can contain **special |
- | * **<#url_https>**: 1 or 0 if protocol is https or not | + | params** that will instruct the engine on with exact version (mobile, secure, etc) of the website |
- | * **<#url_mobile>**: 1 or 0 if mobile or not | + | the definition is for : |
- | * **<#url_property_id>**: Id of the property | + | |
- | * **<#url_request_id>**: Id of the request | + | ^ Tag ^ Definition ^ |
- | * **<#url_contact_id>**: Id of the contact | + | | <html><span style="color:#008000">&lt;#https&gt;</span></html> | 1 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_thread_id>**: ID of the forum thread | + | | <html><span style="color:#008000">&lt;#mobile&gt;</span></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_GeoPlace_Path parent_GeoPlace_ID="FR-241095-241110" Shorten="1">**: | + | |
- | <code> | + | Each definition line (LANGUAGE_ID = URL_PATH) can contain some tags like for exemple : |
- | 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>**: 1 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="..." false="...">**: Conditionally return the the value of true or false, depending on the condition | + | |
- | * **<#caseof expression="..." 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"><#property_id></span></html> | The Id of the property. \\ Ex: ENU = [/minisite/v1/]**<#url_property_id>**/ | | ||
+ | | <html><span style="color:#008000"><#propertyRequest_id></span></html> | Id of the property request. \\ Ex: ENU = [/alerts/]**<#url_propertyRequest_id>**/ | | ||
+ | | <html><span style="color:#008000"><#contact_id></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 115: | Line 104: | ||
PTG = [/forums/] | PTG = [/forums/] | ||
RUS = [/forums/] | RUS = [/forums/] | ||
- | USA = [/forums/] | + | ENU = [/forums/] |
</code> | </code> | ||
Line 121: | 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 | + | |