css selector vs 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.
1/2/2011 8:18:49 AM
Nux
Gravatar
Total Posts 183

css selector vs layout.master

Hi there,

first of all, happy 2011 and a lot more of mojoportal smiley.

Long time I've been here, but I started again with making applications with mojoportal and I have a question.

In my experience that I had, I thought that all the admin pages had the site default skin. When you work with one skin for your site, than there is no problem. But because of SEO I work with different skins for specific things, like the 1-2-3 column layout. So I took the skin with 1 column as the default site skin and depending on the page, I took a different skin. That way I have the full size of showing the admin content. But now, I don't know since when, this doesn't work anymore.
What I see is that I get the css of the default site skin, but the html comes from the master of the page.
Example: I have made a 1 column layout skin, that I call "admin" and also a "content" skin, that has a 2 column layout, left with the menu and on the right the content, but in a jquery scrollpane, specific for a normal page. But when I set the skin of the page to content, and go to the admin of the page, I see the css of admin, but html of the content skin.

Have anything changed about the working of this?
I checked all things about caching, but since I'm in process, every cache is set to 0 or off.
Anyone an idea?

Stef

1/3/2011 2:25:45 AM
Nux
Gravatar
Total Posts 183

Re: css selector vs layout.master

Hi,

I now found out that this situation is only on the PageLayout.aspx (for so far I have checked everything). My version is 2.3.5.5 so I thought there weren't any changes yet in the page, but is it possible that this has something to do with it?

Thanks
Stef

1/3/2011 6:23:24 AM
Gravatar
Total Posts 18439

Re: css selector vs layout.master

Hi Stef,

As far as I know it still works the same, the admin pages (under Administration Menu) use the site default skin and pages can use specific skins. Note however that you may be thinking of PageLayout.aspx and PageSettings.aspx and they are in a sense admin pages but since they are specific to the page they must use the same skin as the page, especially PageLayout.aspx because a page may be using a skin with more than 3 content panes and if we use the site default skin there it will not have all the layout sections needed by the page.

All skins in mojoportal support from 1 to 3 columns with automatic layout, so having different skins with different numbers of columns sounds like you are working against the grain of the system. ie we don't make any skins that only support 1 column, we just hide the side columns if there is no content there.

Hope it helps,

Joe

1/3/2011 10:05:52 AM
Nux
Gravatar
Total Posts 183

Re: css selector vs layout.master

Hi Joe,

thanks for your answer, but there is something strange than.
The home page of my aprilia site has different css files than the PageLayout.aspx. On that page, it uses the css of the default skin. Is it possible that it uses the layout.master from the skin of the page, while the css is from the default site skin?

And I know that the normal way has automatically layout, but I don't use that way of filling the html (check my aprilia site and see which column is coming first), and with my way it is not always possible to have it in 1 skin. Like now, the customer is asking that the content is shown in a jscrollpane, which isn't usefull for the admin pages. But I solved the problem with css.

So could you check if I'm correct on what I said about the css files?

Thanks
Stef

 

 

1/3/2011 10:17:44 AM
Gravatar
Total Posts 18439

Re: css selector vs layout.master

Hi Stef,

I think it does not work correctly when you have this setting:

<add key="CombineCSS" value="false"/>

but if you set it to true it works correctly. It should be true on production sites to improve the page load speed, you are loading a lot of separate css files and they are not minified. For production it is best to enable both combining and minifying of CSS.

Hope it helps,

Joe

1/3/2011 10:32:58 AM
Nux
Gravatar
Total Posts 183

Re: css selector vs layout.master

Hi Joe,

I reset the values to check on this site as well. So I changed it again, and now there is a link to the csshandler.ashx?skin=1CL&amp;s=1 on the pagelayout.aspx, while a link to the csshandler.ashx?skin=3CL&amp;s=1 on the home page. Also, the link to the favicon.ico on the pagelayout is refurring to 1CL (as well as the IE specific css files), which is my default site skin and not the skin of the page.

Stef

 

1/4/2011 6:28:16 AM
Gravatar
Total Posts 18439

Re: css selector vs layout.master

Hi Stef,

I was not able to replicate the problem of incorrect skin name with css handler, in my testing if I set specific skin on the home page (not site default) then when I go to pagelayout.aspx is shows the correct page specific skin name. 

I do agree it is a bug about the IE specific css and the favicon, I have fixed those this morning, they are fixed now in the source code repository so they will be fixed in the next release. I also fixed it so that if CombineCss is false it correctly resolves the individual css file urls and uses relative urls.

Best,

Joe

1/4/2011 2:16:13 PM
Nux
Gravatar
Total Posts 183

Re: css selector vs layout.master

Ok Joe, thanks for this.
I will follow this up.

Thanks
Stef

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