Follow me @MarkXA

Subscribe

Donate

Adding to a skin

  • Add
    <%@ Register TagPrefix="ddr" TagName="MENU" src="~/DesktopModules/DDRMenu/Menu.ascx" %>
    <%@ Register TagPrefix="ddr" Namespace="DNNDoneRight.DDRMenu" Assembly="DNNDoneRight.DDRMenu" %>
    to the list of Register tags at the start of the skin.
  • Use the following format for the menu control in your skin file:
    <ddr:MENU MenuStyle="..." NodeXmlPath="..." IncludeNodes="..." ExcludeNodes="..." NodeSelector="..." NodeManipulator="..." runat="server">
    <TemplateArguments>
    <ddr:TemplateArgument Name="..." Value="..." />
    ...
    </TemplateArguments>
    <ClientOptions>
    <ddr:ClientString Name="..." Value="..." />
    <ddr:ClientNumber Name="..." Value="..." />
    <ddr:ClientBoolean Name="..." Value="true|false" />
    ...
    </ClientOptions>
    </ddr:MENU>
    Only the MenuStyle parameter is required, all others are optional.
  • Set the MenuStyle parameter to the name of the folder containing your menu template (e.g. Classic, Mega1, Treeview, etc).
  • Set any optional parameters you may need.

Using for module actions

  • Add
    <%@ Register TagPrefix="ddr" TagName="ACTIONS" src="~/DesktopModules/DDRMenu/Actions.ascx" %>
    to the list of Register tags at the start of the skin.
  • Use the following format for the actions menu control in your container file:
    <ddr:ACTIONS MenuStyle="..." runat="server" />
    The MenuStyle parameter is optional - by default the DNNMenu template will be used, which is compatible with existing action menus.