Added link generation example, and fixed a typo.
authorIlkka Hakkari <ilkka.hakkari@derega.net>
Sat, 18 Jun 2011 18:23:40 +0000 (11:23 -0700)
committerIlkka Hakkari <ilkka.hakkari@derega.net>
Sat, 18 Jun 2011 18:23:40 +0000 (11:23 -0700)
docs/tutorials/shipherd.rst

index f1205aa..363ddd8 100644 (file)
@@ -27,9 +27,9 @@ All you need to do now is show the navigation in the template! This is quite eas
                <ul>
                    {% recursenavigation node "main" %}
                        <li{% if navloop.active %} class="active"{% endif %}>
-                           {{ item.text }}
+                           <a href="{{ item.get_target_url }}">{{ item.text }}</a>
                        </li>
-                   {% endnavigation %}
+                   {% endrecursenavigation %}
                </ul>
                {% container page_body as content %}
                {% if content %}