@Mracula

Как сделать что-бы была раскрыта та чать аккордеона которая относиться к активной странице?

Как сделать что-бы была раскрыта та чать аккордеона которая относиться к активной странице?

<div class="title-menu"><i class="fa fa-bars"></i>{{ heading_title }}</div>
		  <ul class="nav navbar-nav">
			{% for item in items %} 
				<li><a href="{{ item.href }}" class="menu-module__a" rel="nofollow">{{ item.name }} 
					{% if item.children %}<span class="show-sc" data-toggle="collapse"><i class="fa fa-plus plus"></i></span>{% endif %} 
					</a>
					{% if item.children is not empty %} 
						<div class="submenu-list collapse">
							<ul class="list-unstyled">
								{% for child in item.children %} 
									<li>
										<a href="{{ child.href }}" rel="nofollow">{{ child.name }} 
											{% if (child.children is not empty) %}<span class="show-sc" data-toggle="collapse"><i class="fa fa-plus plus"></i></span>{% endif %} 
										</a>
										{% if child.children is not empty %} 
											<div class="collapse mob-submenu-list-3lev">
												<ul class="list-unstyled">
													{% for subchild in child.children %} 
													{% if item.type == 'freelink' %} 
														<li><a href="{{ subchild.link }}"> - {{ subchild.title }}</a></li>
													{% else %} 
														<li><a href="{{ subchild.href }}"> - {{ subchild.name }}</a></li>
													{% endif %} 
													{% endfor %} 
												</ul>
											</div>
										{% endif %} 
									</li>
								{% endfor %} 
							</ul>
						</div>
					{% endif %} 
					
				</li>
			{% endfor %} 
		  </ul>
  • Вопрос задан
  • 73 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы