exturl
Contributors
- Balazs Halasy Updated
- Adrien Commenter
- marcin Commenter
- Andi Commenter
This documentation stores what it needs to work: a session cookie when you sign in or keep a setting such as the help menu shown or hidden, the design you chose (Classic or Modern) and your language. Only if you agree, it also uses Google Analytics (through Google Tag Manager) to count visits; until then nothing is loaded from Google. Your choice is kept in a cookie for 6 months, and you can change it at any time under "Cookie settings" at the foot of every page. Details are in our Cookie Policy.
The session cookie for signing in and for forms, the cookies that keep your design and language, and the cookie that keeps this choice. They stay on because the website needs them; you can delete them in your browser settings at any time.
Google Analytics, loaded through Google Tag Manager (GTM-MPGWKTQV), counts visits and shows us which pages are read: the pages you open, the page you came from, your browser, device and screen size, and your approximate location derived from your IP address. Google processes the data for us and may transfer it to the USA. It sets the cookies _ga and _ga_* for up to 2 years. Off until you turn it on; when you turn it off again, Google is no longer loaded and these cookies are deleted.
Comments (5 historical)
Written by readers of the earlier documentation sites, kept as they were.
W3C
Adrien ·
Is there an operator able to encode a string for W3C valide href attribute?
For example, in the base link.tpl, we can read:
<a href="{$node.data_map.location.content}">
Every contributor will type a non encoded URL with amperstamp. So the template should replace & by & to have valid HTML. This is not the case. And exturl() won't help.
What is the aim of exturl? Only add doublequotes??
Re: W3C
Adrien ·
ezurl can be used on external URL too:
<a href="{$node.data_map.location.content|ezurl()}">
This is the way to have W3C valid href attributes.
Re: Re: W3C
marcin ·
But still can't be used to encode url, to pass url as a parameter. And i havn't found good way to do this.
Re: Re: Re: W3C
Adrien ·
True. {'http://test.com?p1=v1&p2=v2'|ezurl('no')} doesn't produce the expected &.
Replying to Adrien
Re: Re: Re: Re: W3C
Andi ·
"wash" is the way to go:
{"Tom & Jerry "|wash} {* Tom & Jerry *}