sitemenu

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
5/22/2006 12:38:39 AM
Gravatar
Total Posts 19

sitemenu

Hi,

I've checked the documentation of skmmenu at www.skmmenu.com.

How can I modify other properties of the sitemenu like SubMenuCssClas, SubItems etc

Thanks very much

Thanh

5/22/2006 6:29:27 AM
Gravatar
Total Posts 18439

Re: sitemenu

Hi Thanh,

In the layout.ascx (layout.master in  mojoportal 2.x) file there are attributes on SiteMenu such as SubMenuCSS that are passed through to the skmMenu.

I'm assuming you are using the 1.x version of mojoportal. It is possible to use skmMenu in 2.x mojoportal but the preferred menu is the ASP.NET menu.

SiteMenu control is a wrapper around skmMenu in mojoportal 1.x and the attributes are passed through to skmMenu.

In mojoportal 2.x SiteMenu is a wrapper around skmMenu, ASP.NET Menu and ASP.NET TreeView. however the attributes on SiteMenu only apply to skmMenu.

In mojoportal 2.0.x the ASP.NET Menu or TreeView is styled using the theme.skin file, but in the not yet released 2.1 branch we are using the new CSS contol adapters for Menu and TreeView and these are styled using CSS in style.css

Hope it helps,

Joe
10/2/2006 11:09:00 PM
Gravatar
Total Posts 2

Insert my own menu

Hi,

I am not sure if this is the right place for my question... I am using mojo skin centered where the menu is on the left side. I would like to insert my own drop down menu (in html code) at the top of the page, going accross the site (under the search bar), can you please tell me how to proceed?

I would of course need to keep the admin menu but would like to create all the other sections myself. Is this possible?

I noticed other skins had a menu accross but the design of the centered skin is more adapted for what I want to do.

Thank you.

10/3/2006 4:09:04 AM
Gravatar
Total Posts 18439

Re: sitemenu

You want to hard code the menu in html? Thats possible but it would make things harder to maintain. If you create your pages first then you can hard code a menu but after that when you add new pages since the dynamic menu is not there the new pages will not appear in the menu and you'll have to hard code it again. Also the dynamic menu is driven by user roles so the user only sees pages they are allowed to see by their roles, you would lose that functionality with hard coding.

What I would recommend is that you take a look at the 2 new skins in the new 2.1.4 release (splitmenu1 and splitmenu2)
If you change the admin page to have the home page as its parent then you could have a hard coded menu across the top but if logged in as admin you would have an addtional menu on the left with the sub pages under home (ie the admin page). You would only want to hard code pages in the top that are available to all users. You'll notice in these 2 skins that I moved the SiteMenu to the top header section of layout.Master (and changed the Direction to Horizontal) and added PageMenu to the left side and also added a new SiteMapDataSource control to the top of the skin which is what the PageMenu binds to
<asp:SiteMapDataSource ID="PageMapDataSource" runat="server" ShowStartingNode="false" />
I would get the site working using both SiteMenu and Page menu and arrange your page hierarchy so that only pages for all users are in the top, then remove the SiteMenu from the top of the skin and hard code your desired menu using html/images or whatever you wish. This way you could still use a dynamic menu on the left side and still add pages to the site as long as they are beneath the top level pages.

Hope this makes sense. You'll have to compare between skins that have the parts that you want and look also in the css because its a little different for horizontal menus.

layout.Master and style.css are the main files in the skin to control layout.

Joe
10/3/2006 8:11:49 PM
Gravatar
Total Posts 2

Re: sitemenu

Hi Joe,

Thank you for the quick response. The whole menu would be hard coded for each new page, this is OK for us. I will try in the layout master.

DAcel

You must sign in to post in the forums. This thread is closed to new posts.