You need to Register for free and Login to post a message in the forum.

Forum

DotNetNuke Nav Menu Tutorial - Issue 47
Last Post 2011-07-22 02:25 PM by Joseph Craig. 45 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Page 1 of 3123 > >>
Author Messages
Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2009-08-04 10:15 AM
    Add any questions or comments regarding the DotNetNuke Nav Menu tutorial from issue 47


    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Petri HuilaUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:4

    --
    2009-08-05 02:34 PM
    Hi!

    I have a question about using both horizontal and vertical menus in the same skin.
    I want to create a menu system just as at dotnetnuke.com, where the vertical menus subpages are displayed indented in the vertical menu.

    Do you have any ideas of attributes used here?
    Is it Navmenu at dotnetnuke.com ?

    / Petri


    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2009-08-06 11:55 AM
    Hello,

    Yes I think that is the Nav menu, however it may be using features that are just available in the new version of the Nav menu in DNN 5.x.

    To give you an idea of how they have coded this, here is the code below from the DotNetNuke.com skin.CSS file

    a div tag with the id of SideNav surrounds their menu.


    You may want to try this attribute in your menu:

    <!--[if gte mso 9]> fficeDocumentSettings> fficeDocumentSettings> <!--[if gte mso 9]> Normal 0 unctuationKerning/> false false false oNotPromoteQF/> EN-GB X-NONE X-NONE ontGrowAutofit/> ontVertAlignCellWithSp/> ontBreakConstrainedForcedTables/> ontVertAlignInTxbx/> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 415 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1593833729 1073750107 16 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-ansi-language:EN-US; mso-fareast-language:EN-US;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-ansi-language:EN-US; mso-fareast-language:EN-US;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> <!--[if gte mso 10]> ForceDownLevel = "True"




    div.SideNav div
    {
        padding-top: 6px;
            padding-bottom: 6px;
        border-bottom: solid 1px #d4dbe3;
    }

    div.SideNav div.Level1
    {
        padding-left: 8px;
    }

    div.SideNav div.Level2
    {
        padding-left: 20px;
    }

    div.SideNav div.Level3
    {
        padding-left: 32px;
    }

    div.SideNav span,
    div.SideNav a:link,
    div.SideNav a:visited
    {
        padding-left: 12px;
        background-image: url("images/site/bullet.gif");
        background-repeat: no-repeat;
        background-position: left center;
        font-family: Arial,Helvetica,Sans-Serif;
        font-size: 11px;
        color: #6f7e87;
        text-decoration: none;
    }

    div.SideNav a.ActiveItem:link,
    div.SideNav a.ActiveItem:visited,
    div.SideNav a.ActiveItem:hover,
    div.SideNav a.ActiveItem:active
    {
        color: #cc0000;
        text-decoration: underline;
        background-image: url("images/site/bullet-red.gif");
    }


    div.SideNav a:hover,
    div.SideNav a:active
    {
        color: #cc0000;
        text-decoration: underline;
    }



    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Rick AndersonUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:6

    --
    2009-08-06 06:03 PM
    I want a secondary menu in addition to the main menu similar in concept to the tutorial. I want the secondary menu to start with a tab-id. However, my configuration of the DNN portal uses the page title (or name) in place of the tab-id. This means I can't figure out which tab-id to start with. How can I determine the tab-id when it isn't explicitly displayed in the url?


    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2009-08-06 07:07 PM
    hello,

    Try going to the page settings for that page, and in the URL you should see the tab ID for that page


    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    tangoUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:9

    --
    2009-08-16 12:57 PM

    Hi Lee,

    Firstly congratulations on an excellant article & choice of article. I have never touched skinning before & have almost nailed it, however

    I seem to have a problem with the height of my menu (DNN 5.01.00 (773))

    I have set the height to 25px & my background image is 25px high but it just wont accept it.

    Ive had a crack (for the first time) with web developer toolbar & narrowed it down to skin.css which also relies on menu.css

    the page in question is http://7even.capaust.org

    I look forward to hearing from you.

    Kind Regards

    Todd



    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2009-08-17 01:46 PM
    Hello,

    Looking at your code, you just need to make one change:

    .mainMenu
    {
        cursor:pointer;
        font-size: 10px;
        width:970px;
    height: 25px;
    }

    instead of placing the height in the
    .mainMenu .root

    When you have placed your background image, I would also recommend you specify a background color to use incase the image can not be displayed.

    ie:
    in your .menu_bg

    background: blue url(images/menu_bg.png) top left;


    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    tangoUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:9

    --
    2009-08-17 11:19 PM
    Thanks soo much, Lee


    superdaveUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:1

    --
    2009-09-02 05:39 PM
    Hi Lee,
    Thanks for the nice tutorial.

    I was trying to figure out how to show a horizontal nav that does NOT show its children in dropdown menus. I'm doing a footer nav, and I don't want something to drop down (or up) when someone scrolls over, for exampel, Admin. I didn't see how to do that in your tutorial (though admittedly I didn't watch every one of them), but I seem to recall you did request feedback on that issue.

    I was able to accomplish this with what would probably be best described as a hack, though a very easy one. I simply set the CSSContainerSub to a css class in which I set the property 'display:none'. Works like a charm.


    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2009-09-02 05:46 PM
    ah yes - good idea! - Thanks for the feedback


    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    LorenUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:3
    Avatar

    --
    2009-09-09 05:37 AM
    Regarding the removal of the submenus...

    I believe the official way to do this now is with the following properties:

    StartTabId="-1" (for starting on the root -- but this could change to whatever level you wanted)
    ExpandDepth="1"
    PopulateNodesFromClient="False" (This is the key piece here, since by default it's True)

    I found this on page 18 of the DotNetNuke Navigation WebControls document written by Jon Henning.


    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2009-09-11 01:46 PM
    thanks for posting this info,


    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    KayT61User is Offline
    Nuker
    Nuker
    Posts:11

    --
    2009-09-27 12:02 PM
    Hello,

    I have now gone through the tutorials in issues 5&6 and 46.

    I am now looking at the tutorials in issue 47 and am having problems styling the Nav menu.

    I have added the code for the nav menu to the ascx file and the menu changes to the 'basic' format.

    Then I add the code from video 3 to a new CSS file but this does not replicate to the local website.  Basically the neither the background image or color are visible.

    Please can you advise where I am going wrong.

    Many thanks.

    Trev



    192724320171.txt

    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9005
    Avatar

    --
    2009-09-27 04:42 PM
    Your skin.css file doesn't seem to define the styles called for in your ascx file.

    I would also remove all of the unneeded/unused styles just to simplify the file.



    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    PeterHawleyUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:7

    --
    2009-11-03 06:26 PM

    I have done this with the following control:

    Register the following Control:

    Register TagPrefix="dnn" TagName="LINKS" Src="~/Admin/Skins/Links.ascx"

    Instr the following control

    dnn:LINKS runat="server" ID="dnnLINKS" Separator="  |  " Level="root"



    RamiUser is Offline
    Nuke Active Member
    Nuke Active Member
    Posts:35

    --
    2010-01-09 10:20 PM
    I'm trying to build my own skin for my site this skin will be a right to left skin, but I face a problem with my [NAV] object which is for dnn menu, this problem needs an alter on the javascript file for the menu named "dnn.controls.dnnmenu.js" but it is a shared js for all skins, so can I specify special js file for my menu or not?


    Tracy DrydenUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:5

    --
    2010-02-19 12:32 AM
    I've got an issue with the images that indicate child menus. I've specified a different image for IndicateChildImage and IndicateChildImageSub, but only the IndicateChildImageSub image displays, for both root and child menus. I even tried IndicateChildImageRoot, but that didn't change anything.


    Tracy DrydenUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:5

    --
    2010-02-19 01:46 AM
    I've sorted the issue, sort of, and in an unsatisfying manner.

    When I switch to a horizontal menu the IndicateChildImageRoot image displays fine. Apparently the authors of the control think they know better than we do. Since vertical menus generally use left arrows for submenus, and so do the submenus, they just grab the submenu image and use that, no matter what you really want. If your root menu is vertical and graphical, there's apparently no way to have nice graphical submenu indicators on it that are different from the ones on the submenus. That's just annoying!


    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9005
    Avatar

    --
    2010-02-19 02:06 AM
    There are alternative menus available.  One free menu, and one that gets lots of postive reviews, is from http://www.dnngarden.com/.  Mark Allan is very active and seems to provide good support.

    This menu is touted as a "drop in" replacement for both SolPart and the DNNNav menus.



    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    letoUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:2

    --
    2010-06-16 08:48 AM
    <!--[if gte mso 9]> Normal 0 21 unctuationKerning/> false false false oNotPromoteQF/> SV X-NONE X-NONE ontGrowAutofit/> ontVertAlignCellWithSp/> ontBreakConstrainedForcedTables/> ontVertAlignInTxbx/> MicrosoftInternetExplorer4 <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:595.3pt 841.9pt; margin:70.85pt 70.85pt 70.85pt 70.85pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> <!--[if gte mso 10]> Hi!

    I am using two Nav menus horizontal in my skin. When I go from a page in the mainmenu to a page in the submenu the first item in that menu is getting a hover effect, even if I am not clicking that one. It just happens when switching from main to sub menu and the opposite way.

    The css class that affects it is .subMenu .hov and .mainMenu .hov

    As I can see, it is the same problem in the DNNC_Simple_Skin_NAVMenu2_i52_code. Anyone
    knows how to get around this problem?

    Thanks
    !



    You are not authorized to post a reply.
    Page 1 of 3123 > >>


    Active Forums 4.3

    Latest Forum Posts

    RE: Best Practices for Modifying a Custom Module by Joseph Craig
    Start up the development website, then install the module using the package that you have. Then, yo
    Best Practices for Modifying a Custom Module by schilders
    Good Morning, I'm needing to modify a custom built module created by another developer targeted f
    RE: Admin menu problem by alireza arabiyan
    hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
    RE: Admin menu problem by Joseph Craig
    Yes, that is what you should have done. What is the URL for your home page? What is the URL for
    RE: Admin menu problem by alireza arabiyan
    hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
    RE: Admin menu problem by Joseph Craig
    How did you move it? Have you added an entry in the portalalias table for the site's domain name?
    RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
    Set up a user with dbo privileges and set the connection string for that user, rather than using Win
    Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
    I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
    Admin menu problem by alireza arabiyan
    hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
    RE: dnn 4.4 upgrade issue by imran shaikh
    Thanks you all it is done by renaming release.config to web.config procedure
    RE: dnn 4.4 upgrade issue by imran shaikh
    Thanks you all it is done by renaming release.config to web.config
    dnn 4.4 upgrade issue by imran shaikh
    hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
    RE: How to build Skins for DNN 6.x by Joseph Craig
    I'd recommend that you try replacing the hard-coded text with the DotNetNuke Text skin object. That
    RE: Module permission does not work! by Joseph Craig
    What permissions have you give to that role?
    RE: DNN nav issue by Joseph Craig
    Are you using a custom skin? How often does this happen?
    RE: Friendly URLs Broken by Joseph Craig
    I don't entirely understand this, but I'm glad you got things working.
    RE: How to build Skins for DNN 6.x by Christopher Adamakis
    Dear all, I have one more question regarding greek fonts. If you check my site http://www.expertsoft
    RE: Dnn local setup problem by imran shaikh
    this is error is resolve now now getting this one Server Error in '/cooperpharma.ma' Applicat
    RE: Module permission does not work! by Abraham Tameru
    I created a special role for the user to administer the site. The user is not a member of the Admini
    Dnn local setup problem by imran shaikh
    Hi All i have just installed the new site files on my local computer set the connection strin
    You are not logged in.
    You must log in to access all 
    650+ videos, tutorials, podcasts, and more.
    RSS Feeds