Posted by jenny.ciera on July 19, 2012 at 5:13pm
5 followers
| Project: | AdaptiveTheme |
| Version: | 7.x-3.0-rc6 |
| Component: | Panels or Gpanels |
| Category: | support request |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I take a look of the instruction from Adaptivetheme Gpanel doc and I was able to insert the given layout.
However, I want to insert a new Gpanel with my customize size such as : 25-75 or 70-30. Anyone has experience with version 3.x please help me? thanks.
Comments
#1
anyone help me with this please?
#2
Jeff -
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
#3
I 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!
#4
@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
#5
There are some important information: How to include custom panels
#6
The 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.
#7
This 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).
#8
Typo!!!
thanks for this...my two hours are now over!