Here's a tip to accommodate Page Settings and Edit Page interface in a complex layout

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/5/2012 4:14:58 PM
Gravatar
Total Posts 49

Here's a tip to accommodate Page Settings and Edit Page interface in a complex layout

Just wanted to share a trick I've been using on some of my Mojo sites. 

I often have a skin for the homepage that is much more complex, with up to 5 content panels. Often times the "center" content panel, which contains the Page Settings and Edit this Page content, doesn't permit proper viewing of this content due to size constraints and positioning.

So, I wrote a little jQuery that can detect if you have pulled up one of those pages, and then you can clean things up to use the full width/height available on your page.

I place this at the bottom of the layout.master, within the $(document).ready that already exists.

if ($('.pagelayout').length || $('.pagesettings').length) {

}

Inside of that you can do things like hide a div

$("#someDiv").hide(); 

or adjust the container that holds your center content panel

$("#myCenterPanel").css('width','auto');

$("#myCenterPanel").css('float','none');

Hope this helps someone.

Tim

2/3/2012 4:49:59 PM
Jon
Gravatar
Total Posts 13

Re: Here's a tip to accommodate Page Settings and Edit Page interface in a complex layout

I'm having an issue with a skin I'm working on where the settings and edit links for the HtmlContent modules don't work in Firefox or Chrome.  They work fine in IE. 

I've got the basic three column layout and I've set the left and right columns to float, left and right respectively, so the center content floats up and wraps around them when the center content is longer. 

Result is the settings and edit links are no longer clickable. It seems to be a layer issue or something but my columns use position:relative; vs. absolute so I don't think it's a z-index issue. 

If I change where the panels are in the layout.master the links work but the design fails. 

Also Double clicking the edit link for example highlights text that appears in the center content.  Really weird behavior. 

Any thoughts or advice would be helpful. 

2/3/2012 5:18:57 PM
Jon
Gravatar
Total Posts 13

Re: Here's a tip to accommodate Page Settings and Edit Page interface in a complex layout

Spoke too soon.  I added z-index:1; and it worked. 

I was under the thought that the z-index didn't apply unless it was position:absolute but it's only the way Firefox and Chrome interpret it.  Design should work cross browser but the differences sure make it hard sometimes. 

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