I also made 2 actions for in the context menu. If the childnode is at level 1, I add CreateAfdelingAction to the context menu and if at level 2, I add CreateLocatieAction. to the context menu.
When opening the tree in umbraco, both lvl 1 and 2 show the CreateLocatieAction in their context menu. When walking through the code with the debugger, I see nothing going wrong.
Am I doing something wrong? Is this behavoir not supported? Is there a other way of doing this?
Tree code:
using
System;
using
System.Collections.Generic;
using
System.Web;
using
System.Text;
using
umbraco.cms.presentation.Trees;
using
umbraco.DataLayer;
using
umbraco.BusinessLogic;
using
umbraco.interfaces;
using
umbraco.BusinessLogic.Actions;
namespace
Organisatiestructuur
{
publicclassLoadOrganisatiestructuur : BaseTree
{
public LoadOrganisatiestructuur(string application)
Context menu in custom tree behaving strange
Hi,
I'm currently usering umbraco 4.0.4.1
I've made a custom tree with subnodes (much like http://www.netaddicts.be/articles/building-a-custom-section-to-manage-external-data.aspx )
I also made 2 actions for in the context menu. If the childnode is at level 1, I add CreateAfdelingAction to the context menu and if at level 2, I add CreateLocatieAction. to the context menu.
When opening the tree in umbraco, both lvl 1 and 2 show the CreateLocatieAction in their context menu. When walking through the code with the debugger, I see nothing going wrong.
Am I doing something wrong? Is this behavoir not supported? Is there a other way of doing this?
Tree code:
Action 1:
Action 2:
If anyone has the same problem: here is how to fix it:
in the Action classes that inherit the IAcion interface, make sure you have a different letter for each action you use in the following funciton:
Letter
{
; }
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.