Skin layout.Master ignored?

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.
8/24/2009 3:54:21 PM
Gravatar
Total Posts 2

Skin layout.Master ignored?

I copied an existing skin.  I re-worked the layout.master and css files.  When rendered, the site seems to ignore my layout.master file.  The HTML source is not what is in my master file.  Am I missing something?  I can't seem to find anything in the documentation that would cause the skin's master file to be ignored.  Does the CMS itself inject divs, etc, that are not in the skin's master?  Did I not configure the site or permissions properly?

 

Thanks,

Lou

8/24/2009 4:08:50 PM
Gravatar
Total Posts 18439

Re: Skin layout.Master ignored?

Most likely you missed the part about where the skins used by the site are located. They are not the ones under /Data/skins but the ones under /Data/Sites/[SiteID]/skins

Hope it helps,

Joe

8/24/2009 10:08:22 PM
Gravatar
Total Posts 2

Re: Skin layout.Master ignored?

I was working in the correct folder.  It doesn't seem to work on Windows XP localhost IIS... It works on Vista...  I must have missed that system requirement.

Does anybody else have that problem?

Lou

8/24/2009 11:32:05 PM
Gravatar
Total Posts 71

Re: Skin layout.Master ignored?

I have same problem :(

in my layout.master file , I removed tags like SiteTitle,SkipLink,.... but when render my page , they added to page :D!!!

for resolve this, I added this style for unexpected elements : <div ..... style="display:none;height:0px;"> ....... :)

8/25/2009 6:04:39 AM
Gravatar
Total Posts 18439

Re: Skin layout.Master ignored?

It should and does work fine on IIS on XP as far as I know. It requires .NET 3.5 SP1. There are differences between IIS on Vista vs XP, but this site is running on Win 2003 where IIS is pretty much the same as on XP.

I cannot imagine how it can be something other than editing the wrong file. If you remove the SiteTitle and skiplinks from the layout.master that your site is using there is no code that will put it back.

Hope it helps,

Joe

8/26/2009 8:21:32 AM
Gravatar
Total Posts 71

Re: Skin layout.Master ignored?

I create my skin for ver. 2.3.1.0 , when I use my skin for earlier version or if there is an compile error in my code , mojo skip error and generate than items , for example if i change  <uc1:nmenu ID="asd" runat="server" /> to  <uc12:nmenu ID="asd" runat="server" /> , my user control still works but items that  i removed from my layout.master, added to rendered page :){#emotions_dlg.undecided}

8/27/2009 3:01:42 PM
Gravatar
Total Posts 18439

Re: Skin layout.Master ignored?

If an error occurs when it tries to use the layout.master from your skin it handles the error to prevent your site from crashing and becoming inaccessible. So your UserControl or layotu.master is throwing errors preventing it from loading your master page, it catches the error and changes to a known master page at "~/Data/skins/styleshout-techmania/layout.Master";

You should see errors in the log about it when that happpens.

Hope it helps,

Joe

9/1/2009 8:14:47 PM
Gravatar
Total Posts 6

Re: Skin layout.Master ignored?

Any way to disable this behavior while I'm working on my skin? It's really hard to figure out what is broken when I get the default skin instead of an error...
9/2/2009 6:28:46 AM
Gravatar
Total Posts 18439

Re: Skin layout.Master ignored?

The errors are logged, look in Administration > System Log, newest errors are at the bottom.

Hope it helps,

Joe

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