Can WCM handle home page/interior page layout and styles being different from each other?

I am looking to implement a WCM site that has one layout/styles for the home page and another layout/styles for the interior pages. I plan on using the Forest master page and the Aspen themes. Has anyone tried this and if so, did it work and would you mind sharing your how you accomplished this? This will be implemented in the latest version which I believe is 10 or 12.

Thanks!

Terry Hammond

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Creating a unique homepage with CSS and Javascript

Hi Terry. You could try checking out this post to see if it helps you accomplish what you need: Creating a unique homepage with CSS and Javascript. If not, please reply with any further questions, and hopefully we can help you out.

Hi Terry, If you look at the

Hi Terry,

If you look at the masterpage you will notice that there is a section for the home page and a section for the interior page. This is where you would define the different layouts. You can then also define different styles for the home/interior pages as they will have different css classes.

Regards,
Leo

Hi Terry, as Melissa pointed

Hi Terry, as Melissa pointed out, you could certainly use JavaScript/CSS to style the interior section differently from the homepage section. I prefer to use server-side code to handle this because this will result in less data being transferred to the end user, and less browser processing required.

All I do is set the homepage/interior page panels to be visible depending on the URL of the current page:

In my master page, I do this:

protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);

if (Request.Url.ToString().ToLower().Contains("my_unique_homepage_name.aspx") && !Request.Url.ToString().ToLower().Contains("login.aspx") && !Request.Url.ToString().ToLower().Contains("sign_in.aspx"))
{
pnlHomePage.Visible = true;
pnlInsidePage.Visible = false;
}
else
{
pnlHomePage.Visible = false;
}
}

There are certainly more elegant ways to get this done, but this does the trick for at least one of my clients.

Cheers,
James

Good tip about using

Good tip about using server-side code instead - thanks for sharing James!

Thanks for the tips

Thanks for the tips everyone. I'll look into this. I remember being able to do it in previous templates but haven't tried it in the new themes.

Terry Hammond enSYNC Corporation Fort Worth, TX terry@ensync-corp.com