Site Menu Modification

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/27/2010 11:42:59 AM
Gravatar
Total Posts 44

Site Menu Modification

Hi,

I'm not sure if I have done this correctly, but here goes.  I am using the Superfish site menu and I wanted add an extra span for text below the main menu link text.  I created a copy of SiteMenu.ascx and the adapter class.  I added my code to the adapter class and read the text value from a resource file based on the menu item text.  I added my new menu control tag prefix to the web.config.  All went well until I tried to add it to layout.master, it seems that mojoBasePage is expecting a SiteMenu type.

2010-10-27 18:05:14,590 ERROR mojoPortal.Web.Global - 127.0.0.1-en-GB - /Default.aspx
System.Web.HttpParseException: The base class includes the field 'SiteMenu1', but its type (mojoPortal.Web.UI.FPANSiteMenu) is not compatible with the type of control (mojoPortal.Web.UI.SiteMenu).

I have not amended any source code, but I'm wondering if I have done this correctly?

Thanks,

Vince.

10/27/2010 1:53:33 PM
Gravatar
Total Posts 44

Re: Site Menu Modification

I couldn't seem to resolve this, so I changed CSSFriendlyAdapters.browser to point at my CustomMenuAdapterSuperfish.cs.  This is working, but the rendered menu is being overwritten with the standard menu by a double post-back.

Once I've resolved this, I'll be back.

Vince.

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