jaws now have dynamic layout for 0.8.x.
for define new layout, we provide 2 table(layout_mod, layout_mod_section)
layout_mod for define layout name and show in layout mode combobox in Layout gadget(admin area).
and layout_mod_section table for define sections of each layout mode for example:
Layout Name: "Dual Header"
|-------------------------------------------------|
| TopHeader |
|-------------------------------------------------|
| Header |
|------------+------------------------+-----------|
| | | |
| LeftSide | Main | RightSide |
| | | |
| | | |
|------------+------------------------+-----------|
| Footer |
|-------------------------------------------------|
we must add this info into layout_mod table:
name = Dual Header
editable = true
and also this info into layout_mod_section:
layout_mod_id | name | wide | width | position
-------------------+-----------+-------+-------+----------
id of "Dual Header" | TopHeader | true | 100 | 1
id of "Dual Header" | Header | true | 100 | 2
id of "Dual Header" | LeftSide | false | 25 | 3
id of "Dual Header" | Main | true | 50 | 4
id of "Dual Header" | RightSide | false | 25 | 5
id of "Dual Header" | Footer | true | 100 | 6
and for using in theme:
<!-- BEGIN TopHeader -->{ELEMENT}<!-- END TopHeader -->