pageId and module Id for an external module ?

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/24/2008 7:14:29 AM
Gravatar
Total Posts 16
Jesuite

pageId and module Id for an external module ?

Hi Joe,

I did'nt understand the use of pageId and moduleId for an external module thow I handle them. My question is : during a sessing can those values change for the end user of my module ?

Once the module is running, if the values dont change, can I hold them by the SESSION or is that a bad idea ?

Thank you.

G.

4/24/2008 7:22:20 AM
Gravatar
Total Posts 18439

Re: pageId and module Id for an external module ?

If your module has its own physical .aspx pages outside the content system (ie the content system is really just Default.aspx) then you should pass the moduleid and the pageid in the query string to your custom pages. Then (since query string can be manipulated) in your custom page you should verify that the module exists on the page and that the user has permission to view/edit the page or edit the module. There are helper functions in mojoBasePage you can use for this (see existing features for example code).

So maintaining these variable is important so you can maintain the security context of the page the user was on when he entered your feature and also it keeps the menu in sync as far as what page is highlighted as the active page. It also makes it easier to provide links back the content page where the user started.

Hope it helps,

Joe

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