Non CMS page and adding altContent1

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/15/2011 2:39:52 PM
Gravatar
Total Posts 15

Non CMS page and adding altContent1

I'm wanting to add some heading content in the top pane to the SearchResults.aspx page.  I'm on version 2.3.7.0.

I'm pretty close after researching it and am using a content instance and ModuleWrapper as shown below.

<asp:Content ContentPlaceHolderID="altContent1" ID="MPTopPane" runat="server">
<portal:ModuleWrapper ID="mdl126" runat="server" ConfigureModuleID="126" ShowOnlyOnCmsPages="false"/>
</asp:Content>

The odd part is if I have the ContentPlaceHolderID="altContent1" I don't get an error but the content is not placed on the page.  However if I change it to altContent2 it works but of course it's in the footer instead of the header.

My custom skin layout.Master contains the following which to me seems like what would be needed for the altContent1 to work but I must be missing something else.

<div id="wrapcenter-top">
  <asp:Panel ID="divAlt1" runat="server" CssClass="altcontent1">
  <asp:ContentPlaceHolder ID="altContent1" runat="server"></asp:ContentPlaceHolder>
   <portal:Breadcrumbs id="Breadcrumbs" runat="server"></portal:Breadcrumbs>
  </asp:Panel>
</div>

Any help would be appreciated.

Thanks, Mark

 

10/16/2011 2:10:31 PM
Gravatar
Total Posts 18439

Re: Non CMS page and adding altContent1

Hi Mark,

try adding HideEmptyAlt1="false" on the <portal:StylesheetCombiner control in your layout.master file.

Hope that helps,

Joe

10/16/2011 10:59:30 PM
Gravatar
Total Posts 15

Re: Non CMS page and adding altContent1

That did it!  Thanks for the help!

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