add parent pages into menu
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 8 Feb 2020 17:47:21 +0000 (17:47 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 8 Feb 2020 17:47:21 +0000 (17:47 +0000)
templates/page.tmpl

index 0ca24347f8085f35eab82123a57dc5ec69cfb4c3..e79727ed784373c71d34c1099859dbb4c8710af7 100644 (file)
                 </TMPL_IF>
             </TMPL_LOOP>
 
-<li><a href="/" class="active" >Home</a></li>
-<li><a href="/about_us" class="active" >About Us</a></li>
+<TMPL_LOOP PARENTLINKS>
+<li><a href="<TMPL_VAR URL>" class="active"><TMPL_VAR PAGE></a></li>
+</TMPL_LOOP>
+<li><a href="/sitemap/" class="active" >Site map</a></li>
+<li><a href="/about_us/" class="active" >About Us</a></li>
 <TMPL_IF EDITURL>
 <li><a href="<TMPL_VAR EDITURL>" class="active" rel="nofollow">Edit</a></li>
 </TMPL_IF>