DotNetNuke Skinning – SolPartMenu
When you first encounter the SolPartMenu skin object, you may become a bit overwhelmed by all of the options. But, it doesn’t take long to realize that you can ignore most of the attributes on the list and stick to a small subset that really matter.
The SolPartMenu object has two basic modes. CSS mode and Attribute mode. That is, you can control everything by specifying an attribute, or you can specify all but a few items by using CSS.
We will concentrate on using CSS for our menu definition. But first, a few attributes you may want to specify.
| Attribute | Explanation |
| display | This controls the top level menu’s orientation. Appropriate values are “horizontal” and “vertical” |
| level | By default, the menu will display starting with the root level. But it can start from the current page’s children or siblings. Available values are, “Root”, “Child”, and “Same” |
| rootonly | true or false. By default, the submenus for a menu item will display. Setting this to false shows only the top level menu items based on what was set for “level”. |
| separator | text in this attribute, includeing html, will be used as a separator between the root level menu options. |
Beyond these attributes are the obvious CSS attributes, and if you really want to get fancy extra attributes that allow you to place html around the various items.
This control has a lot of potential. The best advice I can give to you is to start with as little as possible the first time you use it and build up from there as you get comfortable with it.
Once you get comfortable with this object, the other skin and container objects will seem trivial.
Other post in DotNetNuke - Skinning
- DotNetNuke - Skinning - June 5th, 2008
- DotNetNuke Skinning - Getting Set Up - June 10th, 2008
- DotNetNuke Skins - Handling CSS Files - June 12th, 2008
- DotNetNuke Skins - Hello, World - June 17th, 2008
- DotNetNuke Skins - Skin Objects - June 19th, 2008
- DotNetNuke Skinning - Containers - June 24th, 2008
- DotNetNuke Skinning - Standard CSS Classes - June 26th, 2008
- DotNetNuke - Avoiding Container Collision - July 1st, 2008
- DotNetNuke Skinning - Dealing with Images - July 3rd, 2008
- DotNetNuke Skinning - SolPartMenu - July 8th, 2008
- DotNetNuke Skinning - Collapsible Containers - July 10th, 2008
- DotNetNuke Skins - ASCX vs HTML mode - August 27th, 2008
- Infinite DotNetNuke Skin Sets For One Low Price - August 19th, 2009
- Blue Stack Form Enhancer Review - September 30th, 2009
Other Related Items:
Professional DotNetNuke 5: Open Source Web Application Framework for ASP.NET (Wrox Programmer to Programmer)DotNetNuke creator Shaun Walker leads this superlative author team of MVPs while delivering the latest update of a bestseller. They offer complete cov... Read More >
If you're new here, you may want to subscribe to the mailing list to get notifications of new post and a virtual tour of past topics. Thanks for visiting!










