Check whether module is on MYPage

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.
7/16/2012 8:10:00 AM
Gravatar
Total Posts 32

Check whether module is on MYPage

Hi,

Is there any way that I can check whether my custom module is residing on MyPage or not?. The thing is on Mypage I want to display the module but with less information than on another page.

Thanks in advance.

Regards,

Lynton

 

 

7/18/2012 10:33:00 AM
Gravatar
Total Posts 32

Re: Check whether module is on MYPage

Any light on this?

7/18/2012 1:17:28 PM
Gravatar
Total Posts 18

Re: Check whether module is on MYPage

have you tried doing something like this.Parent.Page.GetType() in your module to see what it returns ?

7/18/2012 1:40:22 PM
Gravatar
Total Posts 18439

Re: Check whether module is on MYPage

If you are talking about the MyPage feature, as opposed to a CMS page, if your feature control inherits from SiteModuleControl, then there is a boolean property built in, ie you can access it with this.RenderInWebPartMode

It will be set to true when your control is loaded in MyPage as a WebPart otherwise it will always be false.

Hope that helps,

Joe

 

7/18/2012 3:03:44 PM
Gravatar
Total Posts 32

Re: Check whether module is on MYPage

Thanks Joe, that certainly did the trick....

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