External pages in menu

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
2/6/2007 6:24:56 AM
Gravatar
Total Posts 488

External pages in menu

It would be nice to be able to add some external, non-CMS pages into main menu.
2/6/2007 2:54:01 PM
Gravatar
Total Posts 18439

Re: External pages in menu

This is already possible.

Just create page and check Use Url. If you put a fully qualified url with http or https it will link to the external page.

The ~/pagename.aspx syntax is only needed for using url re-writing with friendly urls internal to the site.

After linking to an external url, the only way to get back to the PageSettings for that page is through the Add/Edit Pages page.

Joe
4/12/2007 9:27:52 AM
Gravatar
Total Posts 488

Re: External pages in menu

Thanks, that works.

And is there any way to add some non-cms page located on the same site?
For example, I need to have "Logoff" link in menu. There is already /logoff.aspx page. Can I somehow include it to menu?

Of course, I can add full url like "http://www.mysite.com/logoff.aspx", but this solution is not good as it does not support migration from development to qa environment (now I just copy the web site files and database).
4/12/2007 10:52:16 AM
Gravatar
Total Posts 18439

Re: External pages in menu

I'll have to ponder that. The login page is not a visible page, it is really just functionality implemented as a link and as such it seems a little strange use case to put it in the menu but nevertheless I'm open to the idea.

Currently when a page is created and an url is specified in the format ~/somepage.aspx, then a friendly url record is created. In the case of ~/Secure/Login.aspx we would not want a friendly url created as this would only mask the actual physical page.

I could probably implement a convention like -/Secure/Login.aspx and not create a friendly url when that syntax is used. Then at runtime if -/ is present replace with ~/ and use ResolveUrl to create the full url.

I think it would be fairly easy to implement this way. Sound reasonable?

Thanks,

Joe
4/12/2007 10:54:47 AM
Gravatar
Total Posts 18439

Re: External pages in menu

Or better solution may be to cache a list of physical pages and make sure no friendly urls are created that could mask. I need a solution to prevent friendly urls from masking real urls anyway so this is probably the way to go.

Joe
4/13/2007 5:44:34 AM
Gravatar
Total Posts 488

Re: External pages in menu

As for my particular requirement (add existing non-cms page to menu), I have found the solution:
1. Create new page with friendly url.
2. Delete friendly url from Url manager
The page is in menu and points to the real page.


Speaking about url feature in general, yes, it would be nice to somehow cache a list of existing physical pages and dissallow creating friendly urls that hide them.
You must sign in to post in the forums. This thread is closed to new posts.