ModuleTitleControl on supporting pages

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.
2/27/2011 2:50:01 PM
Gravatar
Total Posts 111
Matt Millican InternetMill

ModuleTitleControl on supporting pages

Can you use the ModuleTitleControl on supporting pages for a module?  Mine doesnt' appear to be showing up at all and I can't seem to figure out why.

Any help would be greatly appreciated!

Matt

2/28/2011 10:05:44 AM
Gravatar
Total Posts 18439

Re: ModuleTitleControl on supporting pages

Hi Matt,

ModuleTitle was only designed for use inside a modulecontrol, you cannot use it on other pages. You can simulate it with html though

<h3 class='moduletitle>Your Title</h3>

and if you need edit links in there you can add them as well with 

<h3 class='moduletitle>Your Title <a href="yourediturl.aspx" class='ModuleEditLink'>Edit></h3>

Hope it helps,

Joe

 

2/28/2011 10:35:15 AM
Gravatar
Total Posts 111
Matt Millican InternetMill

Re: ModuleTitleControl on supporting pages

Thanks very much Joe!  That's what I was thinking, but I just wanted to verify before I went about it the way you suggested!

3/7/2011 1:21:20 PM
Gravatar
Total Posts 18439

Re: ModuleTitleControl on supporting pages

Hi Matt,

I take it back, you can do it and there are situations where it would be preferable to use it rather than mimicking it because of the various logic for rendering things for Artisteer or jqeuryUI that is built into it is more work to replicate in other places.

If you get the latest code from the repository you can see an example where I used it on a supporting page for the List/Links feature, in mojoPortal.Features.UI/List/ViewList.aspx.cs

The trick is that you have to do some configuring of the control to make up for what would be configured by SiteModule.

That is you have to assign the instance of Module to the control, set the CanEdit property and edit url, etc. Look at the mentioned example for details.

Best,

Joe

3/8/2011 11:45:05 AM
Gravatar
Total Posts 111
Matt Millican InternetMill

Re: ModuleTitleControl on supporting pages

Hi Joe,

Thanks very much for this!  I'll have to check it out tonight!

I'm guessing this will be in the next release as well?

Thanks very much!

Matt

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