Skip to content

Instantly share code, notes, and snippets.

Adam Green bristlebird

Block or report user

Report or block bristlebird

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bristlebird / category_submenu.html
Created Sep 24, 2019
Add category links as sub-menus to Perch CMS navigation
View category_submenu.html
// ====================================================================
// ====================================================================
// outputs set of category links for sub-menu (/perch/templates/categories/custom/category_submenu.html)
// called by perch_categories() in nav.php
<perch:before><ul class="sub-menu"></perch:before>
<li<perch:if id="catDepth" match="gt" value="1"> class="indent"</perch:if> ><a href="/<perch:category id="catPath" />"><perch:category id="catTitle" type="smarttext" /></a></li>
You can’t perform that action at this time.