This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

exturl

Summary

Not documented yet.

Balazs Halasy (05/02/2004 12:49 pm)

Balazs Halasy (06/05/2005 9: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 *}