This shows you the differences between two versions of the page.
en:public:developer:template_system:urlresources [2013/03/09 12:30] admin |
en:public:developer:template_system:urlresources [2015/09/24 23:07] (current) svanderclock |
||
---|---|---|---|
Line 37: | Line 37: | ||
FRA = / | FRA = / | ||
RUS = / | RUS = / | ||
- | USA = / | + | ENU = / |
PTG = / | PTG = / | ||
ESP = / | ESP = / | ||
Line 45: | 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 53: | 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 66: | 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 | ||
Line 85: | Line 85: | ||
^ Tag ^ Definition ^ | ^ Tag ^ Definition ^ | ||
- | | <html><span style="color:#008000"><#url_https></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>** | | + | | <html><span style="color:#008000"><#https></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>** | |
- | | <html><span style="color:#008000"><#url_mobile></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>** | | + | | <html><span style="color:#008000"><#mobile></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>** | |
- | Each definition line (LANGUAGE_ID = URL_PATH) can contain some of theses tags : | + | Each definition line (LANGUAGE_ID = URL_PATH) can contain some tags like for exemple : |
^ Tag ^ Definition ^ | ^ Tag ^ Definition ^ | ||
- | | <html><span style="color:#008000"><#url_property_id></span></html> | The Id of the property. \\ Ex: USA = [/minisite/v1/]**<#url_property_id>**/ | | + | | <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"><#url_propertyRequest_id></span></html> | Id of the property request. \\ Ex: USA = [/alerts/]**<#url_propertyRequest_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"><#url_contact_id></span></html> | Id of the contact. \\ Ex: USA = [/blogs/members/]**<#url_contact_id>**/ | | + | | <html><span style="color:#008000"><#contact_id></span></html> | Id of the contact. \\ Ex: ENU = [/blogs/members/]**<#url_contact_id>**/ | |
- | | <html><span style="color:#008000"><#url_thread_id></span></html> | ID of the forum thread. \\ Ex: USA = [/forums/f2/thread/]**<#url_thread_id>**/ | | + | |
- | | <html><span style="color:#008000"><#url_GeoPlace_Path></span></html> | The geo place path to add in the url <html><br /> | + | |
- | <br /> | + | |
- | ex: <#url_GeoPlace_Path parent_GeoPlace_ID="FR-241095-241110" Shorten="1"><br /> | + | |
- | <br /> | + | |
- | <b>IF Shorten <> 1 then</b>: <br /> | + | |
- | IF parent_GeoPlace_ID = FR-241095-241110 (alpes-maritimes)<br /> | + | |
- | => then url_GeoPlace_Path = cannes/<br /> | + | |
- | IF parent_GeoPlace_ID = FR-241095 (provence-alpes-cote-d-azur)<br /> | + | |
- | => then url_GeoPlace_Path = alpes-maritimes/cannes/<br /> | + | |
- | IF parent_GeoPlace_ID = FR (france)<br /> | + | |
- | => then url_GeoPlace_Path = provence-alpes-cote-d-azur/alpes-maritimes/cannes/ <br /> | + | |
- | IF parent_GeoPlace_ID = '',XW,XA,XE,XI,etc. (empty, world or continent)<br /> | + | |
- | => then url_GeoPlace_Path = france/provence-alpes-cote-d-azur/alpes-maritimes/cannes/<br /> | + | |
- | <br /> | + | |
- | <b>IF Shorten = 1 then</b>:<br /> | + | |
- | url_GeoPlace_Path = cannes-241110/ (label-GeoPlaceID)<br /> | + | |
- | </html> | | + | |
- | | <html><span style="color:#008000"><#url_GeoPlace_HaveChilds></span></html> | Return 1 or 0 if the geo_place point by the url_geoplace_id have childs or not | | + | |
- | | <html><span style="color:#008000"><#url_PageNumber></span></html> | The page number (ex: for /real-estate/for-sale/france/provence-alpes-cote-d-azur/alpes-maritimes/cannes/page2/ the page number is 2) | | + | |
- | | <html><span style="color:#008000"><#url_Propertylistings_type></span></html> | The type of Property listings (Wide listings (1), My Ads listings (2), Member''s listings (3)) | | + | |
- | | <html><span style="color:#008000"><#url_output_format></span></html> | The format of the output (Html (1), Rss (2)) | | + | |
- | | <html><span style="color:#008000"><#if></span></html> | Conditionally return the the value of true or false, depending on the condition | | + | |
- | | <html><span style="color:#008000"><#caseof></span></html> | 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 | | + | |
- | | <html><span style="color:#008000">Regex Expression</span></html> | Any regex expression like (?P<extra_path>.*). RegEx expression must alway contain group name in the form (?P<Group_Name>Expression) | | + | |
This file can contain also HTTP redirect mapping instructions. Ex | This file can contain also HTTP redirect mapping instructions. Ex | ||
Line 129: | Line 104: | ||
PTG = [/forums/] | PTG = [/forums/] | ||
RUS = [/forums/] | RUS = [/forums/] | ||
- | USA = [/forums/] | + | ENU = [/forums/] |
</code> | </code> | ||
Line 137: | Line 112: | ||
* **[BaseHref]**: Specifies the base URL/target for all relative URLs; | * **[BaseHref]**: Specifies the base URL/target for all relative URLs; | ||
* **[StaticBaseHref]**: 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 |