eZ Community » Forums » Setup & design » Option duplicated on context class menu
expandshrink

Option duplicated on context class menu

Option duplicated on context class menu

Tuesday 23 October 2012 12:06:12 pm

I'm trying to add and element on context class menu.

I add a admininterface.ini.append.php file in my admin siteaccess:

<?php /* #?ini charset="utf-8"?

[AdditionalMenuSettings]
ClassMenuTemplateArray[]=node/edihfclassmenu.tpl

*/ ?>

Then I created a template on ./<ezpublish-root>/extension/<my-extension>/design/admin/templates/node/edihfclassmenu.tpl with this content:

<hr />
<script type="text/javascript">
menuArray['ClassMenu']['elements']['class-subirhf'] = new Array();
menuArray['ClassMenu']['elements']['class-subirhf'] = {ldelim} 'url': {"/ezmultiupload/upload/%nodeID%"|ezurl} {rdelim};
</script>
 
<a href="#" id="class-subirhf" onmouseover="ezpopmenu_mouseOver( 'ClassMenu' )" >Subida múltiple de archivos</a>

It's works fine and the option is added to the context class menu but, It makes it twice (see image below).
http://imageshack.us/photo/my-images/547/classmenu.jpg/

How can I fix it?

Modified on Tuesday 23 October 2012 12:15:45 pm by Israel Martín

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from