PageMenu changed after upgrading from .NET 3.5 to 4.0

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/26/2011 10:31:49 AM
Gravatar
Total Posts 49

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 12:17:03 PM
Gravatar
Total Posts 18439

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 12:35:22 PM
Gravatar
Total Posts 49

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 12:51:41 PM
Gravatar
Total Posts 18439

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 1:02:42 PM
Gravatar
Total Posts 49

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.