Encoding and passing variables betwenn templates

Author Message

J-A Eberhard

Sunday 26 February 2006 2:08:28 pm

Hi,
I have a list of items and I want to allow users, with a click on the author name, to see all other post of this author
Author are text line. They are not related to the eZ author.
I made a link to pass the author name between templates

<a href={$node.url_alias|append('/(author)/'|append( $my_citation.object.data_map.author.content))|ezurl}>
{attribute_view_gui attribute=$my_citation.object.data_map.author}</a>

I get the variable author with

{$view_parameters.author}

but the encoding is showing

%20

instead of a blank space between lastname and firstname
Using UTF-8 encoding, how could I solve this?

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

André R.

Sunday 26 February 2006 3:51:23 pm

You'll have to code around this, its 100% normal behavior that blank spaces gets converted to %20. This is pr http spec and all browsers should behave this way.
You should also be aware of charters that is not in the a-z & 0-9 range, this would result in the same type of encoding.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

J-A Eberhard

Sunday 26 February 2006 11:39:47 pm

Do I have any other possibilities to pass variables between templates? Something like $_SESSION?

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.