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

Forum

How to do links?
Last Post 2010-03-19 07:50 PM by Guy..L. 6 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Guy..LUser is Offline
Nuker
Nuker
Posts:11

--
2010-03-14 07:30 AM  
I'm setting up a website using DNN 5.2.4.  I'm confused by the many different ways I could set up navigation links in DNN and by the fact that I cannot seem to find a "Links Module" in the module list.  So instead, let me describe this fairly common links motif...

The art designer has laid out all the pages with a series of horizontal links to subpages.  I'll pick one page in the site that has five subpages.  When you navigate to the page you see a horizontal links of all the subpages.

page1 | page2 | page3 | page4 | page5

If you click on one of these, say page3, then that page is displayed and this very same links in the same location on page3 now looks like

page1 | page2 | PAGE3 | page4 | page5

(of course these capitals are a different color on the art).

I don't know the best way to implement this in 5.2.4.  Do I put this in the skin and lock in the site structure to the skin?  Will the [LINKS] object work for this?  Should I put a Text Module where the links are and put links inside that Module?  Or should I hunt down the Links Module and use it?

Understand that six pages have the same menu and that the parent page has none selected whereas each child page has its name highlighted on the links.  I'd like to use the same thing on all six pages and have it "know" which page it is on.

Thank you.

Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9008
Avatar

--
2010-03-14 06:23 PM  
There is a links module. If it has not been installed (and many modules are not installed by default) go to the Extensions page and click the Install Available Modules at the bottom of the page. Normally the functionality that you have described is provided by the menu(s) that are included in your skin. So, you would normally set your skin to display the modules that you want. For example, the Links module doesn't build links dynamically so that they links change depending of the page. Recently I used the NavXp module from Avatar Software. Besides funtioning as a normal menu, it also comes as a module that can be added to pages and configured like a module. You might want to take a look and they have a free version that you can use for learning and testing.

Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2010-03-15 05:58 PM  
I think the easiest way to set this up would be to use the default NAV Menu that comes with DNN. It is relatively simple to setup the styling for the currently selected page in the Nav Menu.

Plus if you use the Nav menu, the links will be dynamic - meaning that, whenever you add a page to your site, the page will also be added into the Nav Menu.

You configure the Nav Menu in your skin code and skin.css.

Here's further information:
Nav Menu v2 for DotNetNuke v5

DotNetNuke Nav Menu
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
Guy..LUser is Offline
Nuker
Nuker
Posts:11

--
2010-03-15 08:06 PM  
It's a fine line between being too automatic and being too configurable.  It's awesome if Nav 2 indicates which page is current for styling purposes.

I will certainly study up on the tutorials you provided for the Nav 2 menu.

One of the problems I have is that the artist is no programmer and wants very specific menus in very specific places.

There are a total of three different menus on one page.  None of them have submenus; but each of them basically lists the pages under a parent page (with some omissions due to artistic license).

The 'top' menu lists high level company pages.

The main menu lists company service pages.

The sub menu is specific to the service and lists several pages under each service.

I'm hoping that if I structure the website correctly I could take advantage of Nav 2 being both automatic and configurable.  I've seen your tutorial explaining how to rename ID's in the ASCX to allow three Nav 2's on one page.

Is it possible to have 'top' list all top level pages except the parent of the service pages?
Then have the main menu list all service pages?
And then configure the sub menu on each service page to list its children pages?

In programmer language, it boils down to this...

1.  Can the root page be set for Nav 2 such that it lists children and nothing else?
2.  Can certain children be excluded from the menu?
3.  If a certain page in the sub menu is current, will that retain the parent's currency status in the main menu?  In other words, any number of current children in the sub menu should retain the parent's currency in the main menu for consistency.

I know there is an exclude from menu checkbox on the Page Settings; but does that apply to Nav 2?  and if so, which menu is the page excluded from if there are multiple menus?  (I'm guessing the page will only ever be excluded in one of the menus, so this last question might be moot.)

Thank you for your support.



Guy..LUser is Offline
Nuker
Nuker
Posts:11

--
2010-03-16 07:48 AM  
I think this website is properly structured in that I can drop the requirement to exclude certain pages.

I discovered that I can redirect a parent page permanently to the first child page such that the parent shows up in the menu and the child shows up in the sub-menu.  So clicking "Services" on the top menu redirects to "First Service" listed on the sub-menu.


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

--
2010-03-17 01:11 PM  
Something else to consider is if you do not wish a page to be displayed in the menu, simply untick the "display in menu" option in the page settings. - Of course this will be set across the entire site.
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
Guy..LUser is Offline
Nuker
Nuker
Posts:11

--
2010-03-19 07:50 PM  
It's really hard to tell quite how awesome DNN Nav v2 is given the documentation and search results out there.  So for those who follow and are learning Nav v2 I will show how I solved these questions I had above.

1.  Use ExpandDepth="1" Level="Child" in the ascx file like so (gt; and lt; omitted)

<dnn:nav runat="server" id="dnnNAVhome" providername="DNNMenuNavigationProvider">dnn:NAV runat="server" id="dnnNAVhome" ProviderName="DNNMenuNavigationProvider"
                IndicateChildren="false" ControlOrientation="Horizontal" CSSControl="homeMenu" Level="Child"
                StartTabId="83" ExpandDepth="1" PopulateNodesFromClient="false" ControlAlignment="Right"

Notice that when I moved to the portal to production I had to edit the StartTabId.  Anyone know how to make that portable?

2.  I had two menus: one that excluded two pages and one that didn't.  I used display: none in the CSS for the former.  It worked better than I'd hoped.

.headMenu .mi5
{
    display: none;
}
.headMenu .mi6
{
    display: none;
}

3.  Finally, while on a child page via a sub sub menu, I wanted the parent page's place on the sub menu to be highlighted.  This CSS used the breadcrumb facility with .subMenu .bc:

.subMenu .root
{
    color: #666;
    font: 11px Arial;
    display: block;
    float: left;
    padding: 0px 11px 0px 11px;
    border-right: 1px solid #666;
    list-style: none;
}
.subMenu .hov, .subMenu .sel, .subMenu .bc
{
    color: #93A0C6;
}
.subMenu .last
{
    border: none;
}

Very nice Nav release.  Thanks again. 


You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

iPhone website logo in DNN root directory by JohnnieD
I'm trying to put an iPhone logo that I made into my site so when someone saves the website on their
RE: Fixed size container by Joseph Craig
Use an HTML module and style the container to have a fixed height and width. Set the overflow attr
Fixed size container by Aggiedan97
I am looking for advice or an actual container that has a fixed height (and width). An HTML module w
RE: DNN 6.1 app_offline.htm by Joseph Craig
If the site "works" in Chrome, Firefox and Safari, but not in IE8 look to IE8 as the problem. It is
RE: DNN site automatically redirects to a different domain name. by Joseph Craig
Make a copy what is in the portalalias table and then remove all but the localhost entry. Verify th
DNN 6.1 app_offline.htm by Dave Hassall
Hi As recommended I have successfully been using the app_offline.htm whilst performing upgrades t
RE: DNN site automatically redirects to a different domain name. by imran shaikh
Hi i have done same as mention in this post my dnn folder name is Trademaxomanupg with
Enforce Terms Tutorial Update by Vistalogix Corporation
I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
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
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds