5 content panes... do not get additional content pane options on pagelayout page

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.
1/24/2010 5:20:30 PM
Gravatar
Total Posts 9

5 content panes... do not get additional content pane options on pagelayout page

I would like to use the additional content pane feature described here http://www.mojoportal.com/morethan3contentpanels.aspx , but when I add the two additional content placeholders to my layout.master, I do not get additional content pane options on the pagelayout page in order to add content for them.  What am I missing?  Thanks!

1/25/2010 8:55:45 AM
Gravatar
Total Posts 18439

Re: 5 content panes... do not get additional content pane options on pagelayout page

You have to add them exactly as indicated in the article using the same IDs as shown.

1/25/2010 11:02:02 AM
Gravatar
Total Posts 9

Re: 5 content panes... do not get additional content pane options on pagelayout page

yes, I currently have this, which matches your article, as far as I can tell, but I still don't get the opportunity to add content to them.

<asp:Panel ID="divAlt1" runat="server" CssClass="altcontent1">
<asp:ContentPlaceHolder ID="altContent1" runat="server"></asp:ContentPlaceHolder>
</asp:Panel>

<asp:Panel id="divLeft" class="noWidth" runat="server" style="width:0px;height:0px;overflow:hidden;">
<asp:contentplaceholder ID="leftContent" runat="server"></asp:contentplaceholder>
</asp:Panel>

<asp:Panel id="divCenter" runat="server" style="width:455px;margin-top:0px;margin-right:30px;padding:0px;">
<asp:contentplaceholder ID="mainContent" runat="server"></asp:contentplaceholder>
</asp:Panel>

<asp:Panel id="divRight" runat="server" style="margin-top:8px;margin-right:5px;width:230px;padding:0px;">
<asp:contentplaceholder ID="rightContent" runat="server"></asp:contentplaceholder>
</asp:Panel>

<asp:Panel ID="divAltContent2" runat="server" CssClass="altcontent2">
<asp:ContentPlaceHolder ID="altContent2" runat="server"></asp:ContentPlaceHolder>
</asp:Panel>
 

1/25/2010 11:03:31 AM
Gravatar
Total Posts 18439

Re: 5 content panes... do not get additional content pane options on pagelayout page

Are you sure you are editing the correct file from /Data/Sites/[SiteID]/skins/[skinname]

NOT from /Data/skins/[skinname]

Hope it helps,

Joe

1/25/2010 11:05:01 AM
Gravatar
Total Posts 18439

Re: 5 content panes... do not get additional content pane options on pagelayout page

Also note that if you have any errors in your layout.master page it will log an error and fall back to using App_MasterPages/layout.master instead of the one in your skin folder.

Check your log and fix any errors in your layout.master

Hope it helps,

Joe

1/25/2010 11:40:11 AM
Gravatar
Total Posts 9

Re: 5 content panes... do not get additional content pane options on pagelayout page

Thanks Joe, but my most recent error in currentlog.config is from 12-18-09.  I just now modified a component to generate an exception, to be sure error logging was working, and it is.  (I am running this locally on my development machine, so am able to do this type of test)

I am indeed editing in my /Data/Sites/[SiteID]/skins/[skinname] folder.  Also, I do see other changes that I make to my layout.master being reflected in my test pages, so I don't think it's defaulting back to App_MasterPages/layout.master.

1/25/2010 11:49:19 AM
Gravatar
Total Posts 18439

Re: 5 content panes... do not get additional content pane options on pagelayout page

Are you using your own code behind file for your layout.master?

You should not be changing the  classes on the divLeft, divRight, divCenter (nor hard coding style there), those are set programatically by our code behind file that our included layout.master files inherit from.

1/25/2010 12:30:15 PM
Gravatar
Total Posts 9

Re: 5 content panes... do not get additional content pane options on pagelayout page

I apologize in advance for the "I think" answers, I inherited this existing working site and so do not know everything that may have been done in the past.

That said, my skin layout.master is using ~/App_MasterPages/layout.Master.cs for it's codebehind, and I compared that file with a clean download from your site, and no changes have been made to it.  So it does not appear that we are using a custom layout.master codebehind.

I've stripped my content area placeholders down to this, and still I don't get additional panes on pagelayout:

<asp:Panel ID="divAlt1" runat="server" CssClass="altcontent1">
<asp:ContentPlaceHolder ID="altContent1" runat="server"></asp:ContentPlaceHolder>
</asp:Panel>

<asp:Panel id="divLeft" runat="server" >
<asp:contentplaceholder ID="leftContent" runat="server"></asp:contentplaceholder>
</asp:Panel>

<asp:Panel id="divCenter" runat="server" >
<asp:contentplaceholder ID="mainContent" runat="server"></asp:contentplaceholder>
</asp:Panel>

<asp:Panel id="divRight" runat="server" >
<asp:contentplaceholder ID="rightContent" runat="server"></asp:contentplaceholder>
</asp:Panel>

<asp:Panel ID="divAltContent2" runat="server" CssClass="altcontent2">
<asp:ContentPlaceHolder ID="altContent2" runat="server"></asp:ContentPlaceHolder>
</asp:Panel>

1/25/2010 12:44:55 PM
Gravatar
Total Posts 18439

Re: 5 content panes... do not get additional content pane options on pagelayout page

 

Ok, I've figured out there is a bug. If you are setting skins at the page level rather than using a single skin, the PageLayout.aspx is using the layout.master from the site default skin when it needs to use the same skin as the content page so it can have the extra panels. You could add those panels to the layout.master for the site default skin as a workaround.

I just fixed this in my copy so it will be fixed in the next release.

Best,

Joe

1/25/2010 12:57:12 PM
Gravatar
Total Posts 9

Re: 5 content panes... do not get additional content pane options on pagelayout page

Thanks Joe, yes, we are using several skins and setting at the page level.

4/15/2010 4:15:23 PM
Gravatar
Total Posts 108

Re: 5 content panes... do not get additional content pane options on pagelayout page

Hi Joe,

Thank god i've found this thread, ive spent hours trying to debug this exact problem.

Is there any chance you could put a workaround into the roadmap for this?

I use styleshout-refresh as my default skin so that i dont have to restyle all the admin pages.

I then use 3 skins,

1 x Homepage skin

1 x Level 1 skin

1 x Level 2 skin

The Level 2 skin is special and uses all 5 content panes, so i added alt1 and alt2 panes to the default skin styleshout-refresh, but i dont want these to show when a user goes to 'Edit this page' on homepage and Level 1 pages, only Level 2.

Hope that makes sense.

Thanks for this post.

Tim

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