Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

exturl

Summary

Not documented yet.

Balazs Halasy (05/02/2004 11:49 am)

Balazs Halasy (06/05/2005 7:05 am)


Comments

  • W3C

    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 &amp; 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

      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

        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

          True. {'http://test.com?p1=v1&p2=v2'|ezurl('no')} doesn't produce the expected &amp;.
          • Re: Re: Re: Re: W3C

            "wash" is the way to go:

            {"Tom & Jerry "|wash} {* Tom &amp; Jerry *}