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.