ThemeBuilder Drop-down Menus
The following guide will help you wrap an existing unordered list inside an HTML div that will style the list elements into a dropdown menu. The div class ‘ adpt-dropdown ’ can be used in pages and ThemeBuilder panels.
Use in a Page
- Edit a page with a nested list you want to style into a dropdown, and add a div with the following class: ' adpt-dropdown horizontal.'
- Cut the list and Paste it into the new div.
- Save the page, and the list should now be a drop-down menu.
Use in a ThemeBuilder Panel
Add the div and its classes in HTML around the list you want to style.
<div class="adpt-dropdown horizontal">
<ac:macro ac:name="panel-import">
<ac:parameter ac:name="panel">menu-view</ac:parameter>
</ac:macro>
</div>
...rest of panel contentHTML Output
This HTML code output is based on some Confluence Demonstration space pages. Note the classes on the div and top-level li item:
<div class="adpt-dropdown horizontal">
<ul class="childpages-macro">
<li style="height: 60px;"><a href="pages/viewpage.action?pageId=98308">What is Confluence? (step 1 of 9)</a></li>
<li class="dir" style="height: 60px;">
<a href="pages/viewpage.action?pageId=98313">A quick look at the editor (step 2 of 9)</a>
<ul class="childpages-macro">
<li class="dir">
<a href="pages/viewpage.action?pageId=98306">Let's edit this page (step 3 of 9)</a>
<ul class="childpages-macro">
<li><a href="pages/viewpage.action?pageId=98310">Get serious with a table (step 5 of
9)</a></li>
<li><a href="pages/viewpage.action?pageId=98311">Prettify the page with an image (step 4 of 9)</a></li>
</ul>
</li>
</ul>
</li>
<li class="dir" style="height: 60px;">
<a href="pages/viewpage.action?pageId=98312">Lay out your page (step 6 of 9)</a>
<ul class="childpages-macro">
<li class="dir">
<a href="pages/viewpage.action?pageId=98314">Learn the wonders of autoconvert (step 7 of 9)</a>
<ul class="childpages-macro">
<li class="dir">
<a href="pages/viewpage.action?pageId=98305">Tell people what you think in a comment (step 8 of 9)</a>
<ul class="childpages-macro">
<li><a href="pages/viewpage.action?pageId=98309">Share your page with a team member (step 9 of 9)</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>