0

django-cms 2.2を使用していますが、メニューが突然消えました。エラーメッセージはありません。メニューを除いて、ページは正常にレンダリングされます。使ってます:

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

コマンド、そして私がチェックしたようにそれはの中に入るshow_menu_templateshowmenu_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 に答える