4

I'm writing a GUI extension and trying to add the functionality to the Publishing queue context menu,

In my extension.config I configured the extension this way:

 <ext:contextmenus>
          <ext:add>
            <ext:extension name="MyExtension" assignid="MyExtension" insertbefore="OtherExtension">
              <ext:menudeclaration externaldefinition="">
                <cmenu:ContextMenuItem id="MyExtension" name="Exportar selección a Excel" command="LanzarVentana4"/>
              </ext:menudeclaration>
              <ext:dependencies>
                <cfg:dependency>Extensiones.MyExtension.Commands</cfg:dependency>
              </ext:dependencies>
              <ext:apply>
                <ext:view name="DashboardView"/>
                <ext:view name="DashboardContextMenu"/>
                <ext:view name="PublishQueueView">
                  <ext:control id="PublishQueueContextMenu" />
                </ext:view>
              </ext:apply>
            </ext:extension>
          </ext:add>
        </ext:contextmenus>

But after restarting IIS and cleaning the browser cache the extension still not appearing in the Publish queue context menu. In the normal context menu is working.

I'd tried also to configure like in this extension, but still the icon does not appear in the publish queue context menu.

<ext:apply>
          <ext:view name="*">
               <ext:control id="PublishQueueContextMenu" />
          </ext:view>
</ext:apply>

Any tips?

  • 3
    UI Beardcore beat me to it :D But about the icon not showing up: keep in mind that the theme has changed to 'Carbon2' since that extension was released. So you will want to put your icon in Themes/Carbon2 instead of Themes/Carbon (although some customers might have reverted to the old theme, so ideally you will probably both versions) – Peter Kjaer Oct 28 '14 at 10:49
  • The extension works fine. Thanks! I've foud the problem is on my config file, with the "insertbefore" element. :) – Julián Hernández Oct 28 '14 at 11:29
7
<ext:apply>
    <ext:view name="publishqueuepopup">
        <ext:control id="PublishQueueContextMenu" />
    </ext:view>
</ext:apply>
| improve this answer | |
  • 1
    That works. But the real problem was with my extension.config file. In this line: <ext:extension name="ExportarExcel" assignid="ExportarExcel" insertbefore="OtherExtension"> Using "cm_whereused" instead of "OtherExtension" solved the problem, "OtherExtension" is an extension wich isn't included in the Queue context menu. Was my fault :P – Julián Hernández Oct 28 '14 at 11:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.