===== <#StaticBaseHref> =====
This tag Return the base URL/target for all relative URLs that point to static documents (Ex: .jpg, .js, .css, etc.). if the base URL/target finish with a slash '/' then it's will be removed from the result (ie: http://foo.example.com/dir1/ => http://foo.example.com/dir1)
For example, given basehref = http://foo.example.com/dir1/dir2 then the relative url ///images/exemple.jpg///
refers to http://foo.example.com/dir1/dir2/images/exemple.jpg. the base URL/target is configured in the [[en:public:developer:template_system:urlresources]] configuration file
==== Parameters ====
^ Name ^ Mandatory ^ Default ^ Description ^
| WithoutProtocol | No | 0 | Remove the protocol scheme (ex: http://) from the result |
| OnlyDomainName | No | 0 | Return only the domain name (ex: arkadia.com) of the result |
| OnlyHostName | No | 0 | Return only the host name (ex: static.arkadia.com) of the result |
==== urlresources configuration ====
the [[en:public:developer:template_system:urlresources]] configuration file must contain the definition of the staticbasehref for all versions (mobile, secure, language) of the website. Ex :
[StaticContentBaseHref]
DEU = http://static.arkadia.com
ESP = http://static.arkadia.com
FRA = http://static.arkadia.com
PTG = http://static.arkadia.com
RUS = http://static.arkadia.com
USA = http://static.arkadia.com
[StaticContentBaseHref]
DEU = http://static.arkadia.mobi
ESP = http://static.arkadia.mobi
FRA = http://static.arkadia.mobi
PTG = http://static.arkadia.mobi
RUS = http://static.arkadia.mobi
USA = http://static.arkadia.mobi
[StaticContentBaseHref]
DEU = https://d3lesla81fvka2.cloudfront.net
ESP = https://d3lesla81fvka2.cloudfront.net
FRA = https://d3lesla81fvka2.cloudfront.net
PTG = https://d3lesla81fvka2.cloudfront.net
RUS = https://d3lesla81fvka2.cloudfront.net
USA = https://d3lesla81fvka2.cloudfront.net
[StaticContentBaseHref]
DEU = https://d3krzxbc34g413.cloudfront.net
ESP = https://d3krzxbc34g413.cloudfront.net
FRA = https://d3krzxbc34g413.cloudfront.net
PTG = https://d3krzxbc34g413.cloudfront.net
RUS = https://d3krzxbc34g413.cloudfront.net
USA = https://d3krzxbc34g413.cloudfront.net
==== Example ====