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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How can you skin a standard ASP menu in DotnetnukeHow can you skin a standard ASP menu in Dotnetnuke
Previous
 
Next
New Post
11/1/2008 1:08 PM
 

I'm using a standard ASP menu control in a design.  Below I have included snippets of the ASCX and the rendered HTML.  What is happening is that when DNN renders the page, it wraps each menu item in a <A> tag which of course invokes the class associated with <A>.  I would like to keep my <A> tags defined for other elements in the skin, but for the menu, the <A> class is the wrong color.  Does anyone know how to convince the engine to insert an extra elements in the <style> tag wrapping the text?

A snippet of Rendered HTML

<td style="white-space:nowrap;"><a class="dnn_ctr367_ViewDevelopmentPlan_DevelopmentPlanMenu_1 NormalIDP dnn_ctr367_ViewDevelopmentPlan_DevelopmentPlanMenu_3" href=" __doPostBack('dnn$ctr367$ViewDevelopmentPlan$DevelopmentPlanMenu','2')" style="border-style:none;font-size:1em;">Archived Tasks</a></td>

 

 

The Original ASCX

<table id="tblMenu" runat="server" border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="height: 25px; text-align: left;">
                        <asp:Menu ID="DevelopmentPlanMenu" runat="server" Orientation="Horizontal" Height="20px"
                            Cssclass="NormalIDP" BackColor="#741010" DynamicHorizontalOffset="2" Font-Names="Verdana"
                            Font-Size="0.8em" ForeColor="#000000" StaticSubMenuIndent="10px">
                            <Items>
                                <asp:MenuItem Value="0" Text="30 Day Overview" ></asp:MenuItem>
                                <asp:MenuItem Value="1" Text="Active Tasks"></asp:MenuItem>
                                <asp:MenuItem Value="2" Text="Archived Tasks"></asp:MenuItem>
                            </Items>
                            <StaticMenuStyle CssClass="TreeViewMenu_Header NormalIDP" />
                            <StaticMenuItemStyle CssClass="NormalIDP" HorizontalPadding="10px" />
                            <DynamicHoverStyle CssClass="TreeViewMenu_Header NormalIDP" />
                            <DynamicMenuStyle CssClass="TreeViewMenu_Header NormalIDP" />
                            <DynamicMenuItemStyle Cssclass="NormalIDP" HorizontalPadding="10px" />
                            <StaticSelectedStyle CssClass="NormalBoldIDP" />
                            <DynamicSelectedStyle CssClass="NormalBoldIDP" />
                            <StaticHoverStyle CssClass="NormalIDP" ForeColor="White" />
                        </asp:Menu>
                    </td>
                    <td width="100%">
                        <asp:Menu ID="UnusedMenu" runat="server" Orientation="Horizontal" Height="20px" Cssclass="NormalIDP"
                            BackColor="#741010" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em"
                            ForeColor="#000000" StaticSubMenuIndent="10px" Width="100%">
                            <Items>
                                <asp:MenuItem Text=" "></asp:MenuItem>
                            </Items>
                            <StaticMenuStyle CssClass="TreeViewMenu_Header NormalIDP" />
                            <StaticMenuItemStyle Cssclass="NormalIDP" HorizontalPadding="10px" />
                            <DynamicHoverStyle CssClass="TreeViewMenu_Header NormalIDP" />
                            <DynamicMenuStyle CssClass="TreeViewMenu_Header NormalIDP" />
                            <DynamicMenuItemStyle Cssclass="NormalIDP" HorizontalPadding="10px" />
                            <StaticSelectedStyle CssClass="NormalBoldIDP" />
                            <DynamicSelectedStyle CssClass="NormalBoldIDP" />
                            <StaticHoverStyle Cssclass="NormalIDP" ForeColor="White" />
                        </asp:Menu>
                    </td>
                </tr>
            </table>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How can you skin a standard ASP menu in DotnetnukeHow can you skin a standard ASP menu in Dotnetnuke


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