Manually Add Links To Nav Menu and Sitemap

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/22/2009 9:50:20 AM
Gravatar
Total Posts 74

Manually Add Links To Nav Menu and Sitemap

I added a few aspx pages for a new photo album management system to my build. How can I add the links to them to the nav bars? Right now it only shows links to pages that you create from inside the application. How can I add my own?

 

Thanks,

Joe

4/22/2009 10:18:56 AM
Gravatar
Total Posts 18439

Re: Manually Add Links To Nav Menu and Sitemap

The menu is created from the virtual pages, there is really only 1 physical page (Default.aspx) which serves all the virtual pages. You can link to a physical page by creating a virtual page then entering a fully qualified url to the physical page like http://fullurltoyourpage.aspx. You can even link diectly to pages external to the site, like you could have a page/link in the menu tha links to http://google.com

However in terms of feature development that is really kind of working against the grain of the syetem rather than with it. Its better to build at least the entry point to your feature as a UserControl which can be plugged into virtual pages like all the other features. 

One of the disadvantages of linking to a physical page is that the menu won't highlight the current page as selected if you do that because you've basically bypassed the virtual page and there is no pageid associated with your physical page so the menu doesn't know it is the current page. Whereas if you work with the system and use virtual pages the menu is smart enough to know which page is the current page because the friendly url maps to a pageid.

Hope it helps,

Joe

 

6/4/2010 10:08:35 PM
Gravatar
Total Posts 355

Re: Manually Add Links To Nav Menu and Sitemap

ParkerJr - is there a viewable link to your photo management system?  It sounds like something I'm needing, and if there's anyway I can avoid having to re-invent the wheel, I'd greatly appreciate it.  Thanks!

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