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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How the menu is generatedHow the menu is generated
Previous
 
Next
New Post
5/17/2011 7:34 PM
 
I see that the standard DNN menu lists the current pages using the "include in menu" flag. I'd like to extend one page/tab, say a "Products" tab with a menu that is generated from a user database table so that the categories of products are included in the menu and can be navigated to from their database records. The page itself would just use a querystring variable and then pull the relevant category information and display it in a module on a page. Can this be done without interfering with the menu navigation for the other actual pages/tabs?

David
 
New Post
5/17/2011 11:26 PM
Accepted Answer 
David - the menu itself is generated by whatever the configured menu provider is. So, in that respect, you can build your own menu provider, or take the existing one and extend it for your own needs.

A simpler, but less flexible option is to create a DNN page record for each product type. These pages would then use the 'external' Url option (at the bottom of the page settings). In here you would enter the path to the page which showed your specific product. When using this feature, the menu provider uses the external url supplied rather than what the 'page' url would normally be. In this way the menu entry points to the Url that you defined, rather than the one DNN would normally generate.
So you would have:
products -> which points to products.aspx
/products/producta -> which points to /products/productid/producta.aspx
/products/productb -> which points to /products/productid/productb.aspx

It's not flexible because you have to create each tab record to point to a specific Url, and adding new products won't include them in the menu. But for a small, static number of products this might be a useful solution.
 
New Post
5/17/2011 11:38 PM
 
Bruce,

Exactly the overview I was looking for, thanks. The static option isn't a great option, but I'll look at extending the menu provider. Do you know any good tutorials?

Thanks,
David
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How the menu is generatedHow the menu is generated


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