parent
03f6b0db13
commit
2c9597a2f8
5 changed files with 57 additions and 7 deletions
@ -0,0 +1,34 @@ |
|||||||
|
{% extends "base.html" %} |
||||||
|
{% load cms_tags i18n menu_tags %} |
||||||
|
|
||||||
|
{% block title %}{% page_attribute "page_title" %}{% endblock title %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
{% block breadcrumb %} |
||||||
|
<ul class="list-unstyled list-inline breadcrumb"> |
||||||
|
{% show_breadcrumb 0 "menu/breadcrumb.html" 0 %} |
||||||
|
</ul> |
||||||
|
{% endblock breadcrumb %} |
||||||
|
|
||||||
|
<div class="sub-content"> |
||||||
|
<div class="menu-xs"> |
||||||
|
<h5 class="header"><strong>{% if request.current_page.parent %}{% page_attribute "menu_title" request.current_page.parent_id %}{% else %}{% page_attribute "menu_title" %}{% endif %}</strong></h5> |
||||||
|
<ul class="list-unstyled"> |
||||||
|
|
||||||
|
{% if request.current_page.parent %} |
||||||
|
{% show_menu_below_id request.current_page.parent.reverse_id 0 100 100 100 'menu.html' %} |
||||||
|
{% else %} |
||||||
|
{% show_menu 1 100 0 100 'menu.html' %} |
||||||
|
{% endif %} |
||||||
|
</ul> |
||||||
|
<div class="sub_parent_placeholder_{{ request.current_page.parent.reverse_id }}"> |
||||||
|
{% static_placeholder request.current_page.parent.reverse_id %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="content"> |
||||||
|
{% block content_safe %} |
||||||
|
{% placeholder "content" %} |
||||||
|
{% endblock content_safe %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endblock content %} |
||||||
@ -1,7 +1,11 @@ |
|||||||
{% load i18n menu_tags cache %} |
{% load i18n menu_tags cache %} |
||||||
{% for child in children %} |
{% for child in children %} |
||||||
<li {% if child.selected %}class="active"{% endif %}> |
<li {% if child.selected %}class="active"{% endif %}> |
||||||
|
{% if child.attr.redirect_url %} |
||||||
|
<h5>{{ child.get_menu_title }}</h5> |
||||||
|
{% else %} |
||||||
<a href="{{ child.get_absolute_url }}"><span>{{ child.get_menu_title }}</span></a> |
<a href="{{ child.get_absolute_url }}"><span>{{ child.get_menu_title }}</span></a> |
||||||
|
{% endif %} |
||||||
</li> |
</li> |
||||||
{% if class and forloop.last and not forloop.parentloop %}{% endif %} |
{% if class and forloop.last and not forloop.parentloop %}{% endif %} |
||||||
{% endfor %} |
{% endfor %} |
||||||
|
|||||||
Loading…
Reference in new issue