DOWNLOAD DEMO
Current Version: 2.3.9.7 2013-04-30
Need a hand? Join the community.

PageMenu changed after upgrading from .NET 3.5 to 4.0

This thread is closed to new posts. You must sign in to post in the forums.
1/26/2011 11:31:49 AM
Gravatar
Total Posts 42

PageMenu changed after upgrading from .NET 3.5 to 4.0

I just upgraded my installation to 4.0, now my PageMenu shows just the parent page and displays the children on rollover of the parent link. Previously, it just listed the children below the parent.

How can I return it back to the way it displayed in 3.5?

Thank you

Tim

1/26/2011 1:17:03 PM
Gravatar
Total Posts 16574

Re: PageMenu changed after upgrading from .NET 3.5 to 4.0

Did you update to the mojoPortal package for .NET 4 or just changed your app pool to .NET 4 using the 3.5 version of mojoPortal?

There are changes in the ASP.NET Menu in .NET 4, see this related thread.

Hope it helps,

Joe

1/26/2011 1:35:22 PM
Gravatar
Total Posts 42

Re: PageMenu changed after upgrading from .NET 3.5 to 4.0

I updated the mojoportal package to 4.0. 

Looking at the related thread, that's referring to changes to the css. Actually, all of my css styles were unchanged. It just went from displaying the list outright, to now it displays the child links upon rollover of the parent link. Which would mean there's now some javascript controlling the pageMenu.

I'm currently using this:

<portal:PageMenu id="PageMenu1" runat="server" UseTreeView="false" TreeViewShowExpandCollapse="false"  />

It looks like I could change it to use the treeview, and then just restyle it the way it was. But, it would be good to know what changed and to know why/how that control now uses a rollover/dropdown function. (I tried adding useSuperfish="false", but it didn't change anything, which I didn't think it would since there's no js on the page to control it.)

EDIT: I'm using  ShowStartingNode="true" on my SiteMapDataSource. If it's false, it shows the child menu normally. But, I want/need the parent link above the child links.

Thanks, Joe.

Tim

1/26/2011 1:51:41 PM
Gravatar
Total Posts 16574

Re: PageMenu changed after upgrading from .NET 3.5 to 4.0

That thread is telling you how to change your CSS to overcome the styles added by the javascript. The !important can make it override the styles added by the javascript, so its a matter of figuring out what is being overriden by hard coded style the javascrip adds and then make your CSS more important to compensate.

You are correct that you could change to TreeView and style it the same way, it does not seem to have the javascript adding styles like the menu does. Really wish the had a way to disable the javascript on the menu but they don't.

ShowStartingNode shows a node called "root", it should be false to not show that. I would not change any setting on the SiteMapDataSource.

Typically PageMenu is used in conjunction with SiteMenu where SiteMenu is the parent and would show top level pages and the PageMenu would show children below the current page, but I think you could show all levels in PageMenu by setting StartingNodeOffset="0" on the Menu not the datasource.

Hope it helps,

Joe

 

1/26/2011 2:02:42 PM
Gravatar
Total Posts 42

Re: PageMenu changed after upgrading from .NET 3.5 to 4.0

Oh, I gotcha.

Thanks for everything, Joe.

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

mojoPortal Hosting Made Easy

Go Mobile with mojoPortal and Mobile Kit Pro!