1
|
|
2
|
|
3
|
Gpanels
|
4
|
-------
|
5
|
|
6
|
Gpanels are drop in multi-column snippets for displaying blocks in
|
7
|
vertical columns.
|
8
|
|
9
|
How to use a Gpanel:
|
10
|
1. Copy and paste a Gpanel into your page.tpl.php file.
|
11
|
2. Copy and paste the region definitions to your themes .info file.
|
12
|
3. Clear the cache (in Performance settings) to refresh the theme registry.
|
13
|
|
14
|
Now you can add blocks to the Gpanel regions.
|
15
|
|
16
|
Gpanels are built with percentages and expand to fill their containing
|
17
|
element, normally a DIV. They will stretch and compress so it does not
|
18
|
matter how wide the page is, or what unit you use to set the page width.
|
19
|
|
20
|
|
21
|
|
22
|
Gpanels in Page Templates
|
23
|
-------------------------
|
24
|
|
25
|
You can paste a Gpanel almost anywhere in page.tpl.php and it will
|
26
|
display correctly. If you embed a Gpanel into an existing region you
|
27
|
may have to alter the conditional logic for the Gpanel to show up.
|
28
|
|
29
|
|
30
|
|
31
|
Gpanels in Nodes
|
32
|
----------------
|
33
|
|
34
|
This is doable, please see the help page for instructions:
|
35
|
|
36
|
http://adaptivethemes.com/documentation/using-gpanels
|
37
|
|
38
|
|
39
|
|
40
|
Just Using the Markup for Node Layouts
|
41
|
--------------------------------------
|
42
|
|
43
|
You can do this also, what I suggest is looking at the panels layouts and
|
44
|
copying the code from the panel template file, then removing the PHP snippets.
|
45
|
The HTML markup in each panels layout is the same as what gets generated by
|
46
|
a Gpanel when it renders. You should remove the "panels-display" class from
|
47
|
the main wrapper in the panels markup if you do this.
|
48
|
|
49
|
|