This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

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

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"?


*/ ?>

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};
<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).

How can I fix it?

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

No reply yet!


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

36 542 Users on board!

Forums menu

Proudly Developed with from