Active
Project:
AdaptiveTheme
Version:
7.x-3.0-rc6
Component:
Panels or Gpanels
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2012 at 17:13 UTC
Updated:
17 Jul 2013 at 04:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jenny.ciera commentedanyone help me with this please?
Comment #2
capellicJeff -
Wondering if you're considering more layouts of the box. I thought I would ask before I dig into the code. I would love to see:
2. AT Two Column 25/75
3. AT Two Column 75/25
Comment #3
capellicI went through the process of creating a plugin layout for my sub-theme. Here are the steps I followed along with the attachment of the end product. Would love some feedback on this.
--
In order to create the two_25_75 layout and the two_75_25 layout. These instructions are assuming the name of the sub-theme is called "base". In my case it's a AT Panels Everywhere sub-theme.
1. Copy the two_33_66 panel layout (themes/adaptivetheme/at_core/layouts/panels/two_33_66 to my theme in the layouts folder (themes/base/plugins/layouts/).
2. Rename layout folder name from two_33_66 to two_25_75.
3. Rename each of the files in the two_25_75 directory to follow the same naming scheme as the folder: two_25_75…
4. Open each of the files and do a find and replace "33-66" to "25-75" and "33_66" to "25_75". You will need to update some descriptive text in two_25_75.inc as well as the styles keys-- essentially where there is a 33 it needs to be a 25 and where there is a 66 it needs to be a 75. Be careful when doing this, I ended up with more than a view errors when attempting it.
5. There is some extra code at the bottom of the css file. I removed all but the first four lines -- not sure what this affects -- maybe Jeff can chime in here.
6. Modified the two_25_75.png file to look like 25/75.
7. After the renaming, I cleared the cache so that the layout is now selectable.
8. Then go to the Theme Appearance page (Layout & General Settings). Click on the Panels & Gpanels tab. The expand "Standard layout." Then expand "two." You will then see your new layout, "AT Two Column 25/75" I selected the first option and saved. I don't know what this bit really does -- maybe Jeff can chime in here.
9. I then assigned a panel variant to this new layout and reloaded the page that met the variant condition and viola-- it works!
Comment #4
Cebra commented@capellic : It seems that you have forgotten something.
Or how does the theme know that there is a new custom gpanel? I used your files and put them into sites/all/themes/mytheme/plugins/layouts/... but Drupal doesn't recognize any new gpanel.
Thx
Comment #5
Cebra commentedThere are some important information: How to include custom panels
Comment #6
gerontas commentedThe final step is to uncomment the line in your theme.info file under
; Panels layout pluginsand be sure that it is pointing to the location where you have saved the new plugin.
Comment #7
Anonymous (not verified) commentedThis works great for 25/75, I was assuming i could reverse it to 75/25 but although i see the panel templates in panels and appearance i get
Notice: Undefined index: two_75_25_top in include() (line 29 of /var/www/html/sites/all/themes/mytheme/plugins/two-75-25.tpl.php).
Comment #8
Anonymous (not verified) commentedTypo!!!
thanks for this...my two hours are now over!
Comment #9
mariacha1 commentedHere's a modified version of #3 that puts the 75% on the left and the 25% on the right, in case it can save anyone else some time.
#3 worked great for me, once I followed the instructions in #6.
Comment #10
Diane Bryan commentedThanks everyone! Bravo on creating this, mariacha1, derek, gerontas, capellic, etc.