Sitemenu issue

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.
4/2/2012 8:20:39 AM
Gravatar
Total Posts 88

Sitemenu issue

Hi,

Im building an mojoportal solution with other plataform that was built since 4years and i need to create menu links in mojo to show pages from the other application. And to do that i´ve created a new page with the url  "~/Folder/Page.aspx". But with this solution when i select de page the menu wasn´t select the page with "AspNet-Menu-SelectedLeaf" css class.

To do that i need to change SiteMenu.cs on DoSelection function:

  private void DoSelecetion(Menu menu)        {           

 if (suppressPageSelection) { return; }          

  bool didSelect = false;            String valuePath = SiteUtils.GetActivePageValuePath(siteMapDataSource.Provider.RootNode, startingNodeOffset, Request.RawUrl);

/*NEW CODE TO RESOLVE URL TO FOLDERS IN MOJO SOLUTION */          

if (valuePath.Length == 0)            

{                

String[] array = Request.RawUrl.Split('/');                

if (array.Length>=2)                                    

valuePath = SiteUtils.GetActivePageValuePath(siteMapDataSource.Provider.RootNode, startingNodeOffset, Request.RawUrl.Replace(WebUtils.GetApplicationRoot(), ""));        

}

...

it´s possible add this code to resolve this problem. This append beacuse SiteUtils.GetActivePageValuePath returns an empty String when request.RawUrl contains /ApplicationRoot/Folder/Page.aspx.

Thanks

4/2/2012 8:36:14 AM
Gravatar
Total Posts 18439

Re: Sitemenu issue

No, we do not support extra / segments in urls because that is how we support multiple sites based on folder names, see the article Search Engine Optimization where this is documented.

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