This panel is very similar to PacksPanel, but instead of simple list of available packs, the tree-like list is constructed. By using the parent attribute of packelement, one can specify the hierarchy of the tree. This panel supports grouping just like PacksPanel does.
example
<installation version="1.0">
(...)
<panels>
(...)
<panel classname="TreePacksPanel"/>
(...)
</panels>
<packs>
<pack name="Base"
required="yes">
(...)
</pack>
<pack name="Themes"
required="no">
(...)
</pack>
<pack name="Black"
parent="Themes"
required="no">
(...)
</pack>
<pack name="Red"
parent="Themes"
required="no">
(...)
</pack>
</packs>
</installation> |
The result tree contains a Base pack element with no children, and themes with two children named Black and Red.