PageListPlus gives you options to dynamically build navigation menus based on your current page. Build a menu based on the current page, the current page’s parent, or the current page’s root (top-level) parent.
It also allows you to append and prepend HTML and create a header or link to the page the menu is built from. And it does everything the native MojoMotor page_list tag does (e.g. the “id”, “class”, and “page” parameters).
For example:
{mojo:pagelistplus:page_list start="parent" id="parentnav" header="h2" header_link="yes" prepend="<div class='navlinks'>" append="</div>"}
ouputs something like:
<div class="navlinks">
<h2><a href="http://example.com/page/parent_page">Parent Page Title</a></h2>
<p> <ul id="parentnav"><br />
<li>...<br />
</ul><br />
</div>All this for free! But, if you’re a developer and don’t mind taking a look at the code, I would appreciate any constructive criticism, especially in the realm of performance and best practices.
Download and documentation:
http://github.com/aaronfowler/mojo-pagelistplus
Cheers!
Aaron