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.
9/29/2010 8:42:22 AM
lum
Gravatar
Total Posts 7

Empty home/main page problem

Hello,

I am working with new site and I got a problem with empty home/main page because of containers.

Result screen: http://img215.imageshack.us/i/dcfres.jpg/

My work with mojo: http://img202.imageshack.us/i/dcfmojo.jpg/


Thanks in advance for the help! Regards

9/29/2010 9:56:36 AM
Gravatar
Total Posts 18439

Re: Empty home/main page problem

You posted this question 3 times in different forums on this site. If you post the same question in multiple forums again I will lock your account and block your ip address.

I don't know what you are trying to do but the links you posted are not valid, why the trailing / for an image url and why when I remove that and try to view the image it is a 1 pixel gif instead of a jpg?

I don't encourage others to follow those links, seems suspicious to me.

Joe

9/30/2010 1:36:58 AM
lum
Gravatar
Total Posts 7

Re: Empty home/main page problem

Ok, sorry. I didnt know where to post such a question. The links are fine and working. Im trying to set empty page on main site.

9/30/2010 7:26:15 AM
Gravatar
Total Posts 18439

Re: Empty home/main page problem

I suggest watch this video to learn how to add features to a page

http://www.mojoportal.com/training-videos-quick-start-tutorial.aspx

9/30/2010 7:28:36 AM
lum
Gravatar
Total Posts 7

Re: Empty home/main page problem

Already watched. Thats not my question...

9/30/2010 7:30:40 AM
Gravatar
Total Posts 18439

Re: Empty home/main page problem

Then you should clarify your question

9/30/2010 8:11:52 AM
lum
Gravatar
Total Posts 7

Re: Empty home/main page problem

Ok. I got div called main on the result page which is empty, so i got a nice main page with only logo. In mojo i have to use layout master and put all the divs, so i got div left and right in main div which generates a white hole between logo and footer. I showed it on those images. Is there any way round?

9/30/2010 8:21:14 AM
Gravatar
Total Posts 18439

Re: Empty home/main page problem

It is important that the layout.master have the required elements

http://www.mojoportal.com/understandingthelayoutmasterfile.aspx

and it must inherit from our base class to show and hide things correctly

http://www.mojoportal.com/how-the-main-column-layout-works.aspx

There is no way to diagnose the problem from a screen shot, it would require seeing the css and the source of  the page and even then it may be tricky to figure out what causes it without making trial and error changes to your css to try to fix it.

 

10/1/2010 7:23:11 AM
lum
Gravatar
Total Posts 7

Re: Empty home/main page problem

Thanks for the links, but I've already read your documentation. What You think about this solution:

1) I've put alt content panel

2) I've edited layout.Master.cs:

alt = this.FindControl("divAltContent2");
            if ((alt != null) && (alt is Panel))
            {
                // ((Panel)alt).CssClass += " cmszone";
                // edited:
                if (HttpContext.Current.Request.Url.ToString().Contains("default"))
                {
                    ((Panel)alt).CssClass = "master-shadow";
                }
            }   

Somehow there are no changes hmm at all.

10/1/2010 7:30:54 AM
Gravatar
Total Posts 18439

Re: Empty home/main page problem

You should not modify any mojoportal code. If you do that you are creating a fork and you will never be able to upgrade without losing your modifications.

So already I'm convinced that the problem you are having is because you changed the code and broke things. I cannot help you with that. 

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.