Revision 69e1a8de

b/cloudcms/templates/cms/base.html
111 111
              {% endif %}
112 112
	            <ul>
113 113
	                {% block page.nav %}
114
	                    {% feincms_navigation of feincms_page as sublevel level=2,depth=1 %}
114
	                    {% feincms_nav feincms_page level=2 depth=1 as sublevel %}
115 115
	                    {% for p in sublevel %}
116 116
	                    <li class="{% if p|is_equal_or_parent_of:feincms_page %}active{% endif %}">
117 117
	                    <a href="{{ p.get_absolute_url }}">{{ p.title }}</a></li>
......
121 121
	            <ul>
122 122
	                {% block page.subnav %}
123 123
	                    {% if feincms_page.override_url != "/" %}
124
	                    {% feincms_navigation of feincms_page as sublevel level=3,depth=1 %}
124
	                    {% feincms_nav feincms_page level=3 depth=1 as sublevel %}
125 125
	                    {% for p in sublevel %}
126 126
	                    <li class="{% if p|is_equal_or_parent_of:feincms_page or p.url == request.path %}active{% endif %}">
127 127
	                    <a href="{{ p.get_absolute_url }}">{{ p.title }}</a></li>
b/cloudcms/templates/cms/footer.html
1
{% load feincms_tags mptt_tags feincms_page_tags %}
1 2
{% if APP.footer_top %}
2 3
<p>
3 4
    {{ APP.footer_top|safe }}
4 5
</p>
5 6
{% endif %}
6 7
<div class="clearfix">
7
	{% load feincms_tags feincms_page_tags %}
8
	{% feincms_navigation of feincms_page as sublevel level=2,depth=1 %}
9
	{% for p in sublevel %}
10
	<ul class="col">
11
		<li>
12
			<a href="{{ p.get_absolute_url }}">{{ p.title }}</a>
13
		</li>
14
	{% feincms_navigation of p as innerlinks level=3,depth=2 %}
15
	{% for innerp in innerlinks %}
16
		<li>
17
			<a href="{{ innerp.get_absolute_url }}">{{ innerp.title }}</a>
18
		</li>
19
	{% endfor %}
20
	</ul>
21
	{% endfor %}
8
    {% feincms_nav feincms_page level=2 depth=1 as sublevel %}
9
    {% recursetree sublevel %}
10
    {% with node as p %}
11
    <ul class="col">
12
        <li>
13
            <a href="{{ p.get_absolute_url }}">{{ p.title }}</a>
14
            </li>
15
            {% if not p.is_leaf_node %} 
16
    {% for innerp in children %}
17
        <li>
18
            <a href="{{ innerp.get_absolute_url }}">{{ innerp.title }}</a>
19
        </li>
20
        {% endfor %}
21
        {% endif %}
22
    </ul>
23
    {% endwith %}
24
    {% endrecursetree %}
22 25
</div>
23 26

  
24 27
{% if APP.footer_bottom %}
b/cloudcmsblog/models.py
207 207
                url=url,
208 208
                lft=0,
209 209
                rght=0,
210
                level=page.level,
210 211
                slug=category.translation.slug,
211 212
            )
212 213

  
b/cloudcmsfaq/models.py
213 213
                url=url,
214 214
                lft=0,
215 215
                rght=0,
216
                level=page.level,
216 217
                slug=category.translation.slug,
217 218
            )
218 219

  

Also available in: Unified diff