Information about adding online editor class visualization

Author Message

christian bencivenni

Thursday 31 January 2008 2:17:40 am

Hi to you all.
I'm searching a way to personalize some features of Online Editor.
Simply I want to add a new self-made class of visualization to the list with Vertically sub-item, Highlighted Object, Orizzontally sub-item, and so on.
The problem is that I cannot find where the original templates are. I thinked they was in \extension\ezdhtml but I'm not sure now.
Someone can clear me this thing?
Thank you in advance.

André R.

Thursday 31 January 2008 2:48:54 am

This is from content.ini pr xml tag. Take a look at content.ini in ez Publish and ezdhtml for some documentation.

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

christian bencivenni

Thursday 31 January 2008 3:23:41 am

Yes, thanks.
Now I can find the class name declaration:

AvailableClasses  default
[0] itemized_sub_items
[1] itemized_subtree_items
[2] highlighted_object
[3] vertically_listed_sub_items
[4] horizontally_listed_sub_items   
  
ClassDescription  
[itemized_sub_items] Itemized Sub Items
[itemized_subtree_items] Itemized Subtree Items
[highlighted_object] Highlighted Object
[vertically_listed_sub_items] Vertically Listed Sub Items
[horizontally_listed_sub_items] Horizontally Listed Sub Items 

But I cannot find where put the template. Probably they are innested in a unique template or php file. Now I will try reading all ezdhtml extension code.

André R.

Thursday 31 January 2008 3:32:41 am

Look in ezwebin instead, it uses override for embed tags on classification:

[highlighted_object]
Source=content/view/embed.tpl
MatchFile=embed/highlighted_object.tpl
Subdir=templates
Match[classification]=highlighted_object

and table tag:

[table_comparison]
Source=content/datatype/view/ezxmltags/table.tpl
MatchFile=datatype/ezxmltext/table_comparison.tpl
Subdir=templates
Match[classification]=comparison

For the code, look in ezwebin/design/ezwebin/override/ + MatchFile

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

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:17:25
Script start
Timing: Jan 18 2025 22:17:25
Module start 'layout'
Timing: Jan 18 2025 22:17:25
Module start 'content'
Timing: Jan 18 2025 22:17:26
Module end 'content'
Timing: Jan 18 2025 22:17:26
Script end

Main resources:

Total runtime0.5697 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.0049 588.1719152.6563
Module start 'layout' 0.00490.0028 740.828139.5078
Module start 'content' 0.00770.5609 780.3359552.2266
Module end 'content' 0.56860.0011 1,332.562512.0938
Script end 0.5697  1,344.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.6258160.0002
Check MTime0.00140.2542160.0001
Mysql Total
Database connection0.00060.099710.0006
Mysqli_queries0.524892.1080600.0087
Looping result0.00050.0794580.0000
Template Total0.543595.420.2717
Template load0.00250.437620.0012
Template processing0.541094.951920.2705
Template load and register function0.00020.029010.0002
states
state_id_array0.00090.162010.0009
state_identifier_array0.00060.109020.0003
Override
Cache load0.00190.3271240.0001
Sytem overhead
Fetch class attribute can translate value0.00060.099920.0003
Fetch class attribute name0.00090.156450.0002
XML
Image XML parsing0.00060.104120.0003
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00140.2406170.0001
String conversion0.00000.001340.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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