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.

eZ debug

Timing: Jan 18 2025 22:31:18
Script start
Timing: Jan 18 2025 22:31:18
Module start 'layout'
Timing: Jan 18 2025 22:31:18
Module start 'content'
Timing: Jan 18 2025 22:31:19
Module end 'content'
Timing: Jan 18 2025 22:31:19
Script end

Main resources:

Total runtime1.2429 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0096 588.1641152.6563
Module start 'layout' 0.00960.0033 740.820339.5078
Module start 'content' 0.01291.2282 780.3281547.7578
Module end 'content' 1.24100.0018 1,328.085912.1094
Script end 1.2428  1,340.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2818160.0002
Check MTime0.00130.1067160.0001
Mysql Total
Database connection0.00270.217410.0027
Mysqli_queries1.188895.6457570.0209
Looping result0.00060.0466550.0000
Template Total1.203096.820.6015
Template load0.00210.169520.0011
Template processing1.200996.619620.6004
Template load and register function0.00010.007110.0001
states
state_id_array0.00080.062010.0008
state_identifier_array0.00200.164020.0010
Override
Cache load0.00180.1459220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.037720.0002
Fetch class attribute name0.00120.099350.0002
XML
Image XML parsing0.00090.070520.0004
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00090.0740220.0000
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs