get page url from module id

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.
5/5/2011 9:33:26 AM
Gravatar
Total Posts 46

get page url from module id

hi joe, ive got an editor form and i want it to post back to the page it just came from.

The module im using is on 3 places on the site, but the editor form is the same for all, so depending on which page called the editor form, it needs to redirect back to that.

ive got the pageID and moduleID of each of the pages it came from, and noticed this bit of code elsewhere on the forums

PageSettings currentPage = CacheHelper.GetCurrentPage();

WebUtils.SetupRedirect(this, SiteRoot + currentPage.Url);

is there any way to modify this or what do i have to use to pass in a page id?

5/5/2011 11:34:15 AM
Gravatar
Total Posts 18439

Re: get page url from module id

As long as you are passing in the pageid parameter to your supporting page you can do it like this:

WebUtils.SetupRedirect(this, SiteUtils.GetCurrentPageUrl());
return;

Hope that helps,

Joe

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