I've created a custom panels layout in the subtheme, all works fine in the admin layout, but it just not works in the frontend.

Anyone helps?

dddd

Comments

rogical’s picture

StatusFileSize
new5.69 KB

Also confused how to make this settings
fd

Jeff Burnz’s picture

I can debug the plugin shortly, my apologies for the delay - I've been on holiday ;)

rogical’s picture

Thanks for the reply, can you also provide a custom layout example for panels when you're free? Thanks!

Jeff Burnz’s picture

Status:Active» Closed (won't fix)

Hi, can you come around and wash my windows when you are free - they really need doing.

rogical’s picture

Status:Active» Closed (won't fix)

Roll back

rogical’s picture

Status:Closed (won't fix)» Active

Someone else may also wants help.

Jeff Burnz’s picture

The point was that if, god willing, I actually have free time, I will be washing my windows ;) And yes they really are dirty, I was not joking, sadly. You scratch my back I'll scratch yours, it's only fair, right?

So chill man, we gotta have some love and laughs around here, its all to serious some times :)

psychobyte’s picture

Status:Closed (won't fix)» Active

Hi Guys,

I would love to have an 80/20 layout. Is there any progress on this? thx.

Jeff Burnz’s picture

One thing I was thinking of doing is creating a whole lot of extra layouts and sticking them somewhere for download, maybe on my site? Sound like a plan?

80/20 is dead easy cause its only a copy/modify any one of the existing 2 column layouts, what are tricky is layouts like the insert layouts, since they need to be forged from scratch.

psychobyte’s picture

Hey Jeff,

So I went and modified the panels/two_66_33 layout and basically changed all "66-33" references to 80-20. I am able to set the panel layout and move content into the regions but, the actual page doesn't seem to reflect the new layout(Similar to what originally started this post). The 80/20 region seems to have the columns stacked on each other.

Is there something else I should have done?

SEPARATE ISSUE:
Also, I created a subtheme off of footheme and put my custom layout in subtheme/layouts/panels but, the layout didn't show up as an option. Is there a way to place the custom layout in my subtheme and have it recognized by drupal?

Thanks.

BTW. The site doesn't seem to let me upload attachments. Otherwise, i would have attached my layout.

psychobyte’s picture

Any chance you can list the files to edit outsite the actual panel layout.

I noticed that there are references to layout css in defaults.css and ie_defaults.css. Are there other places that need to be edited?

jonraedeke’s picture

@psychobyte Make sure you uncomment the following line in your subtheme .info file.

plugins[panels][layouts] = layouts/panels

Then make sure your custom layout is in [mytheme]/layouts/panels. I don't think there are any other files you need to change other than the .info file and the files within the layout folder. If you need more info on how the AT panels layout templates work, checkout five-5x20.tpl.php in AT Core. It has a bunch of helpful comments.

You also may need to visit your theme settings page and resave. AT then generates the necessary CSS based on your custom layout.

xbrianx’s picture

I would love to be able to download extra layouts if you have any floating around. I've been trying to create my own and is proving to be frustrating for me right now. Right now I've tried to copy a whole panel layout to my subtheme, rename all instances of two_66_33 to two_66_33_alt, and even after clearing caches multiple times it still doesn't reflect the newly created panel.

I checked my theme's .info file and plugins[panels][layouts] = layouts/panels is uncommented so I am pretty much lost right now.

But basically looking for 25/75 type splits with brick like structure to support different style settings (such as tabs)

xbrianx’s picture

To reply to my problems about the panel not showing up, I missed an important step and that is renaming the function from adaptivetheme to [themename] - The custom layout showed up in the selection, but selecting it it didn't show any regions or anything. - *edit* I think after saving the theme settings was the key, I am now seeing some panel regions

I would still be interested to see what other layouts are available.- * edit * I found one in a previous thread for a 66/33 brick which was great!

behoppe333’s picture

StatusFileSize
new2.4 KB

Hi,

I am having the same problem as psychobyte. I made a custom panels layout two_58_42 (based on two_66_33) and put it the layout folder in my subtheme. The layout shows up correctly in all the appropriate admin / panelizer screens, but when viewed from front end the CSS fails to deploy. My left and right sections end up displaying inline, one on top of the other, instead of one floating left and the other floating right.

I have attached my layout.

I am not a programmer but I think I am trying to do something not hard -- just change the 66/33 to a different ratio of my own choosing. Am I missing something obvious?

Thanks for help!

PS: The attached layout has a bit of extra hacking. In the css array I originally tried 58/42, which did not work, and then switched two lines below to 60/40, which also does not work. I made the switch based on comments in the five-5x20 panel layout saying that 60 and 40 are built-in. Unfortunately my PHP skills are not up to fully understanding the commented code of five-5x20

Regardless of 60/40 or 58/42, I get same result:

<?php
   
'styles' => array(
     
'two-58-42' => array(
       
'css' => array(
         
'60' => array('.two-58-42 > .region-two-58-42-first' => 'width:60%'),
         
'40' => array('.two-58-42 > .region-two-58-42-second' => 'width:40%'),
        ),
      ),
?>
Jeff Burnz’s picture

The styles array should be like this:

<?php
   
'styles' => array(
     
'two-58-42' => array(
       
'css' => array(
         
'58' => array('.two-58-42 > .region-two-58-42-first' => 'width:58%'),
         
'42' => array('.two-58-42 > .region-two-58-42-second' => 'width:42%'),
        ),
      ),
?>

AT doesn't really care what the array keys are, as long as you always use the same ones to mean the same thing, for example if you made another plugin that has a column of 42% then use the array key '42', i.e. "the key should always match the width" is the best policy to go by.

Remember - you have to select the layouts from within your subthemes settings page, e.g. /admin/appearance/settings/yoursubtheme - click the Gpanels and Panels vertical tab, then open each field set (Standard, Tablet etc etc) and select a layout using the radio buttons - then save the settings - this will write the CSS.

If you want settings in your themes info file, good if you need to migrate, see the following - but remember you must always always always clear the sites cache when you add a plugin, check something is selected for your new layout in theme settings, then save the theme settings.

settings[bigscreen_two_58_42]            = 'two-58-42'
settings[tablet_landscape_two_58_42]     = 'two-58-42'
settings[tablet_portrait_two_58_42]      = 'two-58-42-stack'
settings[smartphone_landscape_two_58_42] = 'two-58-42-stack'
behoppe333’s picture

Thank you very much Jeff Burnz for very prompt help! I was missing the part about selecting panel layouts from my subtheme settings page. I did that and my panel layout works :-)