Force Position Custom control

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/26/2010 1:36:44 AM
Gravatar
Total Posts 2

Force Position Custom control

Hello Everyone,

I have a custom control that i must place at the left of the page (in the first content place holder). How can I avoid that the user insert it in the center or right place holder?

 

I thought to force the position with CSS. For example, the user insert the control in the right place holder but I force its position to the left do not caring about the choice of the user. But I do not like this solution.

 

Suggestions?

 

 

Thanx

7/26/2010 7:30:23 AM
Gravatar
Total Posts 18439

Re: Force Position Custom control

I would not recommend building any content system feature that needs to be in a specific location. Content system plugins are meant for users to be able to place in various places on the page so that is working against the grain and will only confuse users.

Maybe you just need to implement a UserControl instead of a SiteModule, then you could just put the user control inside divLeft in layout.master and it will be in the left on all pages. If needed you can add the property AlwaysShowLeftContent="true" on the <portal:StyleSheetCombiner and this will tell the master page to always show the left side even if no content system content is there.

Hope it helps,

Joe

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