shouldn't mojobasepages which are not a cms page and are not created by user exhibit a different id?

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.
8/4/2011 9:38:18 AM
Gravatar
Total Posts 192

Re: shouldn't mojobasepages which are not a cms page and are not created by user exhibit a different id?

best thanks.

I did this because they don't fit the normal module space. that newsticker on the top for example is to extend the whole page length under menu, it's not to sit in any of the three columns.

8/4/2011 9:51:54 AM
Gravatar
Total Posts 18439

Re: shouldn't mojobasepages which are not a cms page and are not created by user exhibit a different id?

you could add up to 2 additional content regions then you could put the 2 extra sections wherever you want in layout.master and use one of them for your news

Hope that helps,

Joe

8/5/2011 8:53:31 AM
Gravatar
Total Posts 192

Re: shouldn't mojobasepages which are not a cms page and are not created by user exhibit a different id?

if (Page is NonCmsBasePage)
                return;

did the work.

I must remember to inherit from this class instead of mojobasepage in my custom admin and edit pages.

unfortunately I needed more than 4 extra content panes for modules, those 2 were not enough.

thankyou.

8/5/2011 8:56:06 AM
Gravatar
Total Posts 192

Re: shouldn't mojobasepages which are not a cms page and are not created by user exhibit a different id?

oh unfortunately BlogView inherits from  mojobasepage, not NonCmsBasePage, also BlogEdit.

8/5/2011 8:58:48 AM
Gravatar
Total Posts 18439

Re: shouldn't mojobasepages which are not a cms page and are not created by user exhibit a different id?

It is safer to use if(!(Page is CmsPage)) { return;} for this very reason that maybe not all non cms pages inherit from NonCmsBasePage.

8/5/2011 9:08:44 AM
Gravatar
Total Posts 192

Re: shouldn't mojobasepages which are not a cms page and are not created by user exhibit a different id?

oh! yes that's right.

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