0

我正在使用 django-cms 2.2,我的菜单突然消失了。没有错误信息。页面正常呈现,但菜单除外。我在用:

{% show_menu 0 0 100 100 "menu/show_menu_template.html" %}

命令,当我检查它进入show_menu_template. showmenu_template是标准的,如下所示,它以前工作过,干杯

{% load menu_tags %}
{% for child in children %}

<li class="{% if forloop.last %}last {% endif %}{% if child.selected %}current selected{% endif %}{% if child.ancestor %}ancestor{% endif %}{% if child.sibling %}sibling{% endif %}{% if child.descendant %}descendant{% endif %}">
    <a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">{{ child.get_menu_title }}</a>
    {% if child.children %}
    <ul>
    {% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
    </ul>
    {% endif %}
</li> 
{% endfor %}
4

1 回答 1

0

我已经更改了模板内的标签,它开始工作,不知道为什么它之前不能工作并停止工作,但该怎么办

{% show_menu 1 1 100 100 "menu/show_menu_template.html" %}
于 2011-11-29T11:00:42.903 回答