Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > custom UserContextMenu View modes: 
User avatar
Member
Member
f.sacchi-netribegroup - 2/21/2013 4:02:28 AM
   
custom UserContextMenu
I developed my control for usermenucontainer.
I added the MenuControlPath parameter in the cms: usermenucontainer, but does not work.

<cms:usermenucontainer runat="server" ID="userMenuElem" MenuID="userContextMenu" Parameter='<%# Eval("UserID") %>' ContextMenuCssClass="<%#isAffiliate()%>"MenuControlPath="~\CMSAdminControls\ContextMenus\UserContextMenuMyjobisyours.ascx" >


I noticed that even if i set the value of the MenuControlPath parameter,to the original value:="~\CMSAdminControls\ContextMenus\UserContextMenu.ascx , it does not work the same.

Please can someone help me here as this does not make sense.

Thanks,
Federica





User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/2/2013 11:28:37 AM
   
RE:custom UserContextMenu
Hi,

Could you please share also the custom control code?
Where and how are you using this control?
Have you tried using the "User control" web part and place it to your page template and then in its settings set the path to your control? This web part is loading the control dynamically so the correct life cycle is ensured.

Best regards,
Juraj Ondrus