Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedHow to add ModuleAction to the page not to the manage menuHow to add ModuleAction to the page not to the manage menu
Previous
 
Next
New Post
12/8/2011 8:35 AM
 

Hi,
i have three points to ask about, DNN 6:

  1.  i used
    public ModuleActionCollection ModuleActions{ get{...} }
    to add new action, but the link to it appeared in the mange menu (accessed by "Mange" button).
    i want my actions to be added to the page itself not to the Manage menu.. is it possible ?

  2. can i customize the Manage menu..?
  3. is there a proper way to hide Manage button.

    i solved this point by:

    1- go to the file: ~/admin/Menus/DNNActions/ULXSL.xslt
    2- and delete the xsl node witch contains definition for the "dnnActionMenu" div.
         in my situation the lines:
         <xsl:template match="node" mode="root">
            <div class="dnnActionMenu">
              <div class="dnnActionMenuTag">
                <xsl:choose>
                    <xsl:when test="@enabled = 1">
                        <a href="{@url}">
                            <xsl:if test="@icon">
                                <img src="{@icon}" />
                            </xsl:if>
                            <xsl:value-of select="@text" />
                        </a>
                    </xsl:when>
                    <xsl:otherwise>                    
                      <xsl:if test="@icon">
                        <img src="{@icon}" />
                      </xsl:if>
                      <span>
                        <xsl:value-of select="@text" />
                      </span>
                    </xsl:otherwise>
                </xsl:choose>
              </div>
            <xsl:if test="node">
                <ul class="dnnActionMenuBody">
                    <xsl:apply-templates select="node" />
                </ul>
            </xsl:if>
            </div>

        </xsl:template
 
New Post
12/8/2011 5:31 PM
 

1. that API is for adding module specific actions - there is no equivalent for adding page actions - though you could create a custom controlpanel to do so , but that would be confusing IMO

2.the manage menu shows the list of default actions for a module, the list that come when a module implements an optional interface (e.g. Iportable will add import/export options) and any custom actions you add with ModuleActions

3. there is no core code to hide the manage button as modules expect to see it


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/14/2011 10:50 AM
 
thank you cathal connolly,

1. how to add a button to the page that do the same work of one default action (e.g. "Settings" or "Help")

i mean, i don't know where to find the URL which i should redirect to it.

2. can i remove some actions from the Manage Menu
like (Move Actions: e.g. " To LeftPane", "To RightPant", etc..)
and (Admin Actions: e.g. "Settings", "Delete", etc..)

3. (OK)

thanks in advanced.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedHow to add ModuleAction to the page not to the manage menuHow to add ModuleAction to the page not to the manage menu


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out