Custom Pages and CMS features

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.
1/8/2012 6:38:58 AM
Gravatar
Total Posts 34

Custom Pages and CMS features

Hi All,

Long time no beg for help, but have a puzzling one that i jsut assumed would work, until I tested it.

I have a  static page that when it inherits from

NonCmsBasePage - It doesn't pull in anything you have added via the CMS, which makes sense.

CmsPage - It seems to get everything from the home page, which I am guess is because this base class was not supposed to be used like this.

My question is, how would i get it to have its content and get things added to the CMS margins etc or is this not possible?

Many thanks

Matt

1/8/2012 2:05:43 PM
Gravatar
Total Posts 18439

Re: Custom Pages and CMS features

Hi Matt,

If you mean make it show the side column contents from the cms page on a supporting page, you can call this method which is built into mojoBasePage

LoadSideContent(true, true);

where the 2 params are for left and right. Note that the content shown is determined by the pageid which must be passed in the url to your supporting page. If no pageid is present it will resolve to the home page.

Hoipe that helps,

Joe

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