Empty home/main page problem

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
10/1/2010 7:34:13 AM
lum
Gravatar
Total Posts 7

Re: Empty home/main page problem

Ok. I just want to change css on main page and then on other pages. So defaut/main page has got mastershadow class inside some div and on other pages i got pageshadow class. Nothing is broken, im just working with my own skin.

10/1/2010 7:43:52 AM
Gravatar
Total Posts 55

Re: Empty home/main page problem

Hi if u want to change class properties for some pages u can use javascript for that... so u

will be able to update mojo... Maybe it is not best way but I cant find out another way...

 

Best 

 

10/1/2010 8:04:55 AM
Gravatar
Total Posts 18439

Re: Empty home/main page problem

The only place where you can easily use custom css class names for skinning is on container divs that you define in your layout.master. For other things you should just use existing classes rendered by mojoPortal. you should not change class names on divLeft, divCenter, divRight.

You can assign different skins to different pages and this allows you to use different style rules on the same css selectors on different pages.

You can also of course add custom css classes and use them in content that is created in the editor/stored in the db.

10/1/2010 11:44:02 AM
Gravatar
Total Posts 2239

Re: Empty home/main page problem

Hi,

I know you said you read the documentation, but, I feel I must ask this question. Do you have the following in your layout.master (as described in the "Understanding the Layou.master" docs)?

<asp:Panel id="divLeft" runat="server" cssclass="leftside" visible="True" SkinID="pnlPlain">
 <asp:contentplaceholder ID="leftContent" runat="server"></asp:contentplaceholder>
</asp:Panel>
<asp:Panel id="divCenter" runat="server" visible="True" cssclass="center-rightandleftmargins" SkinID="pnlPlain">
 <asp:ContentPlaceHolder ID="mainContent" runat="server"></asp:ContentPlaceHolder>
</asp:Panel>
<asp:Panel id="divRight" runat="server" visible="True" cssclass="rightside" SkinID="pnlPlain">
  <asp:contentplaceholder ID="rightContent" runat="server"></asp:contentplaceholder>
</asp:Panel> 
   

To be clear, you need those items somewhere in your layout.master; if you leave any of them out, you will not be able to see content on your site at some point.

HTH,
Joe D.
 

10/1/2010 11:44:13 AM
Gravatar
Total Posts 2239

Re: Empty home/main page problem

Hi,

I know you said you read the documentation, but, I feel I must ask this question. Do you have the following in your layout.master (as described in the "Understanding the Layou.master" docs)?

<asp:Panel id="divLeft" runat="server" cssclass="leftside" visible="True" SkinID="pnlPlain">
 <asp:contentplaceholder ID="leftContent" runat="server"></asp:contentplaceholder>
</asp:Panel>
<asp:Panel id="divCenter" runat="server" visible="True" cssclass="center-rightandleftmargins" SkinID="pnlPlain">
 <asp:ContentPlaceHolder ID="mainContent" runat="server"></asp:ContentPlaceHolder>
</asp:Panel>
<asp:Panel id="divRight" runat="server" visible="True" cssclass="rightside" SkinID="pnlPlain">
  <asp:contentplaceholder ID="rightContent" runat="server"></asp:contentplaceholder>
</asp:Panel> 
   

To be clear, you need those items somewhere in your layout.master; if you leave any of them out, you will not be able to see content on your site at some point.

HTH,
Joe D.
 

10/2/2010 11:54:41 AM
lum
Gravatar
Total Posts 7

Re: Empty home/main page problem

Hello,

thanks for all your help :). I have done it by simple javascript function.

Regards!

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