Skip to content

Instantly share code, notes, and snippets.

View GrantSmithDoddle's full-sized avatar
😆

Grant Smith GrantSmithDoddle

😆
View GitHub Profile
@GrantSmithDoddle
GrantSmithDoddle / category_submenu.html
Created September 26, 2019 14:53 — forked from bristlebird/category_submenu.html
Add category links as sub-menus to Perch CMS navigation
<!--*
// ====================================================================
// CATEGORY SUBMENU
// ====================================================================
// 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>
<perch:after></ul></perch:after>