Attribute view gui and parameter

Author Message

Fabio Carissimi

Monday 11 December 2006 7:28:57 am

Hello,

I tried to use attribute_view_gui in a template with an additionnal parameter.
It is for an XML tag datatype. What I want to do is having an output like :

<p class="myclass">bla</p>

instead of

<p>bla</p>

attribute view gui use the standard paragraph.tpl in \content\datatype\view\ezxmltags
which contains this code :

<p{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>
{$content}
</p>

Normally

{attribute_view_gui attribute=$node.object.data_map.myattribute classification="myclass"}

should work but It doesn't.

Can somebody help me to use this functionnality ?
Many Thanks

Fabio Carissimi

Tuesday 23 January 2007 6:58:43 am

nobody can help ?

Fabio Carissimi

Wednesday 14 March 2007 6:42:39 am

Still nobody?

Is this a bug or do I have to use it differently?

Thanks for help ...

Claudia Kosny

Thursday 15 March 2007 1:57:11 am

Hi Fabio

I think you have to use it differently. According to this page http://ez.no/doc/extensions/online_editor/4_x/usage/formatted_text/the_class_parameter you have to set the class for the paragraph in the content editor. Read the linked page to get detailed information on how to do that.

Claudia

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 10:17:42
Script start
Timing: Jan 18 2025 10:17:42
Module start 'layout'
Timing: Jan 18 2025 10:17:42
Module start 'content'
Timing: Jan 18 2025 10:17:43
Module end 'content'
Timing: Jan 18 2025 10:17:43
Script end

Main resources:

Total runtime1.0617 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.0703152.6250
Module start 'layout' 0.00600.0034 741.695339.4453
Module start 'content' 0.00941.0505 781.1406482.4688
Module end 'content' 1.05990.0018 1,263.609412.1563
Script end 1.0617  1,275.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3376160.0002
Check MTime0.00150.1382160.0001
Mysql Total
Database connection0.00090.084710.0009
Mysqli_queries0.996393.8343600.0166
Looping result0.00070.0673580.0000
Template Total1.000394.220.5002
Template load0.00250.234620.0012
Template processing0.997893.983020.4989
Template load and register function0.00030.024210.0003
states
state_id_array0.00210.197410.0021
state_identifier_array0.00240.225720.0012
Override
Cache load0.00210.1975270.0001
Sytem overhead
Fetch class attribute can translate value0.00100.092520.0005
Fetch class attribute name0.00290.271240.0007
XML
Image XML parsing0.00020.022820.0001
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00150.1447100.0002
String conversion0.00000.001140.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0004 secs