]> git.0d.be Git - panikweb.git/commitdiff
topiks: display top page name as meta in sidebar
authorFrédéric Péters <fpeters@0d.be>
Fri, 21 Apr 2017 16:08:50 +0000 (18:08 +0200)
committerFrédéric Péters <fpeters@0d.be>
Fri, 21 Apr 2017 16:08:50 +0000 (18:08 +0200)
panikweb_templates/templates/combo/page_template_sidebar.html
panikweb_templates/templates/combo/topik_menu_item.html

index bd00b18502f66d5a4b9684647aa27c0cda560c51..954cc09bb35b770ee899e3aa4435c336d84df3b5 100644 (file)
                  {% if page.public and not page.exclude_from_navigation %}
                    {% if page.has_children %}
                      {% for subpage in page.get_children %}
-                       {% include "combo/topik_menu_item.html" with page=subpage only %}
+                       {% include "combo/topik_menu_item.html" with page=subpage category=page.title only %}
                      {% endfor %}
                    {% else %}
-                     {% include "combo/topik_menu_item.html" with page=page only %}
+                     {% include "combo/topik_menu_item.html" with page=page category="Topik" only %}
                    {% endif %}
                  {% endif %}
                {% endfor %}
index 475af68b24e42fbd12b603672c824123e9e9e1ff..da12f74a68a891cf4300ffd7065df0097c8c491e 100644 (file)
@@ -17,7 +17,7 @@
         <h5 class="title"><a href="{{page.get_online_url}}">{{page.title}}</a></h5>
       </div>
       <div class="smooth metas">
-        <span class="categories">{{page.title}}</span>
+        <span class="categories">{{category}}</span>
       </div>
     </div>
   </div>