Thursday 04 September 2008 3:17:24 am
Hi, I want to add the custom classes in the online editor insert object options as defined in the ezwebin site i.e vertically_listed_sub_items, horizontally_listed_sub_items. I have tried with the following steps but was not able to get the required result. First made an entry in the content.ini
[embed]
AvailableClasses[]=itemized_sub_items
AvailableClasses[]=itemized_subtree_items
AvailableClasses[]=highlighted_object
AvailableClasses[]=vertically_listed_sub_items
AvailableClasses[]=horizontally_listed_sub_items
AvailableClasses[]=menu
CustomAttributes[]=offset
CustomAttributes[]=limit
ClassDescription[itemized_sub_items]=Itemized Sub Items
ClassDescription[itemized_subtree_items]=Itemized Subtree Items
ClassDescription[highlighted_object]=Highlighted Object
ClassDescription[vertically_listed_sub_items]=Vertically Listed Sub Items
ClassDescription[horizontally_listed_sub_items]=Horizontally Listed Sub Items
ClassDescription[menu]=Menu
CustomAttributesDefaults[offset]=0
CustomAttributesDefaults[limit]=5
After this I have override the embed.tpl template and made an entry in the override.ini.append.php in the desired siteaccess as follow.
[menu]
Source=content/view/embed.tpl
MatchFile=embed/menu.tpl
Subdir=templates
Match[classification]=menu
But it shows the result of the embed_folder template. Anyone has idea where i m making mistake. Regards,
|