skin doesn't change when altering layout.master

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.
12/12/2009 2:28:19 PM
Gravatar
Total Posts 76

skin doesn't change when altering layout.master

Hello,

I deleted everything from the layout.master page in my site/data/skin directory.

I only kept the neccesary as stated on this site. See the code below.

But when i look to my site nothing much changes, the layout and background almost stays the same?!

How can this be?!

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="~/App_MasterPages/layout.Master.cs" Inherits="mojoPortal.Web.layout" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id = "head1" runat="server">
<title></title>
</head>
<body>
<form id="frmMain" runat="server">
<asp:SiteMapDataSource ID="SiteMapData" runat="server" ShowStartingNode="false" />

<span>TestPagina Mojo-Portal</span>
<asp:contentplaceholder ID="pageEditContent" runat="server"></asp:contentplaceholder>
<asp:Panel id="divLeft" runat="server" visible="True" SkinID="pnlPlain">
<asp:contentplaceholder ID="leftContent" runat="server"></asp:contentplaceholder>
</asp:Panel>
<asp:Panel id="divCenter" runat="server" visible="true" SkinID="pnlPlain">
<asp:ContentPlaceHolder ID="mainContent" runat="server"></asp:ContentPlaceHolder>
</asp:Panel>
<asp:Panel id="divRight" runat="server" visible="true" SkinID="pnlPlain">
<asp:contentplaceholder ID="rightContent" runat="server"></asp:contentplaceholder>
</asp:Panel>

</form>
</body>
</html>
 

12/12/2009 2:31:43 PM
Gravatar
Total Posts 18439

Re: skin doesn't change when altering layout.master

Note that it uses the skins from /Data/Sites/[SiteID]/skins not from /Data/skins

Also note that if there is an error in your layout.master it will log the error and fallback to a backup layout.master file so youshould check your log for errors related to your skin.

Hope it helps,

Joe

12/12/2009 2:40:21 PM
Gravatar
Total Posts 76

Re: skin doesn't change when altering layout.master

Hello Joe,

I put it in the right directory!

But where can i find the log-file?

VS2008 shows no errors, only it can't find the file"  '~/App_MasterPages/layout.Master.cs' was not found.ha
But that seems ok to me?!

 

Thnx

 

12/12/2009 2:47:12 PM
Gravatar
Total Posts 18439

Re: skin doesn't change when altering layout.master

/App_MasterPages/layout.master is the one it will try to use when there is an error in your skin layout.master so you should make sure that does exist.

You can view the log at Administration > System Log or by downloading /Data/currentlog.config

newest errors are at the bottom of the log.

Hope it helps,

Joe 

12/12/2009 2:54:03 PM
Gravatar
Total Posts 76

Re: skin doesn't change when altering layout.master

Joe,

The log says:

'ASP.data_sites_1_skins_mitchinson_business3_layout_master' does not contain a definition for 'head1' and no extension method 'head1' accepting a first argument of type

 

But when i look at my layout.master code i defined:

<head id = "head1" runat="server">
<title></title>
</head>

So i defined it, not?

12/12/2009 2:56:37 PM
Gravatar
Total Posts 18439

Re: skin doesn't change when altering layout.master

It is case sensitive, make sure it is id="Head1" 

12/12/2009 3:04:41 PM
Gravatar
Total Posts 76

Re: skin doesn't change when altering layout.master

Now i get a totall-error:

 

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

 

12/12/2009 3:05:40 PM
Gravatar
Total Posts 18439

Re: skin doesn't change when altering layout.master

Download the currentlog.config and see what the error is, newest errors are at the bottom of the file. 

12/12/2009 3:11:05 PM
Gravatar
Total Posts 76

Re: skin doesn't change when altering layout.master

Error:

2009-12-12 16:04:20,014 ERROR mojoPortal.Web.mojoBasePage - 84.30.201.174-nl-NL - /Default.aspx
System.InvalidOperationException: The control with ID 'upRating' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

12/12/2009 3:13:46 PM
Gravatar
Total Posts 18439

Re: skin doesn't change when altering layout.master

Ok, so you've moved past the previous error and are encountering a new one because ScriptManager is required.

Hope it helps,

Joe 

12/12/2009 3:20:03 PM
Gravatar
Total Posts 76

Re: skin doesn't change when altering layout.master

Thnx Joe,

Now i see a plain text website. Thnx for youre time. I now can move on building my skin.

It's time to by you a beer!

 

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