V
V
Vladimir Belkov2016-10-20 09:16:39
Netcat CMS
Vladimir Belkov, 2016-10-20 09:16:39

Help with menu implementation on bootstrap 3 in CMS NETCAT?

I'm transferring the design to CMS NetCat, I can't make a menu. (more precisely, the correct display) Need
help

<nav id="menu" class="navbar container">
    <div class="navbar-header">
      <button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
    </div>
    <div class="collapse navbar-collapse navbar-ex1-collapse">
      <ul class="nav navbar-nav">
        <li><a href="#">О компании</a></li>
        <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Продажа запчастей <i class="fa fa-arrow-circle-o-down"></i></a>
          <div class="dropdown-menu">
            <div class="dropdown-inner">
              <ul class="list-unstyled">
                <li><a href="#">Программа поставок</a></li>
                <li><a href="#">Розничная сеть</a></li>
                <li><a href="#">Доставка</a></li>
                <li><a href="#">Сертификаты</a></li>
              </ul>
            </div>
          </div>
        </li>
        <li><a href="#">Сервис</a></li>
        <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Новости <i class="fa fa-arrow-circle-o-down"></i></a>
          <div class="dropdown-menu">
            <div class="dropdown-inner">
              <ul class="list-unstyled">
                <li><a href="#">События</a></li>
                <li><a href="#">Акции</a></li>
                <li><a href="#">Технические обзоры</a></li>
              </ul>
            </div> 
          </div>
        </li>
        <li><a href="index.html">Контакты</a></li>
        <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Работа в компании <i class="fa fa-arrow-circle-o-down"></i></a>
          <div class="dropdown-menu">
            <div class="dropdown-inner">
              <ul class="list-unstyled">
                <li><a href="#">Карьера</a></li>
                <li><a href="#">Вакансии</a></li>
                <li><a href="#">Охрана труда</a></li>
                <li><a href="#">Корпоративная культура</a></li>
              </ul>
            </div>
          </div>
        </li>
      </ul>
    </div>
  </nav>

And here is what I got in Netcat (Netcat)
$menuniz_sub_menu3['active_link'] ="<li><a href='%URL'>%NAME</a></li>";
$menuniz_sub_menu3['active'] ="<li><a href='%URL'>%NAME</a></li>";
$menuniz_sub_menu3['unactive'] ="<li><a href='%URL'>%NAME</a></li>";
$menuniz_sub_menu3['divider'] ="";
$menuniz_sub_menu3['prefix'] ="<div class='dropdown-menu'><div class='dropdown-inner'><ul class='list-unstyled'>";
$menuniz_sub_menu3['suffix'] ="</ul></div></div>";

$browse_menu['active_link'] = "\"; global \$menuniz_sub_menu3; 
\$result.=\"<li class='dropdown'>
<a \".(!s_browse_sub(\$data[\$i][Subdivision_ID],\$menuniz_sub_menu3)?\"\":NULL).\" href='%URL' class='dropdown-toggle' data-toggle='dropdown'>%NAME</a>
\".s_browse_sub(\$data[\$i][Subdivision_ID],\$menuniz_sub_menu3).\"";

$browse_menu['active'] ="\"; global \$menuniz_sub_menu3; 
\$result.=\"<li class='dropdown'>
<a \".(!s_browse_sub(\$data[\$i][Subdivision_ID],\$menuniz_sub_menu3)?\"\":NULL).\" href='%URL' class='dropdown-toggle' data-toggle='dropdown'>%NAME</a>
\".s_browse_sub(\$data[\$i][Subdivision_ID],\$menuniz_sub_menu3).\"";

$browse_menu['unactive'] = "\"; global \$menuniz_sub_menu3; 
\$result.=\"<li class='dropdown'>
<a \".(!s_browse_sub(\$data[\$i][Subdivision_ID],\$menuniz_sub_menu3)?\"\":NULL).\" href='%URL' class='dropdown-toggle' data-toggle='dropdown'>%NAME</a>
\".s_browse_sub(\$data[\$i][Subdivision_ID],\$menuniz_sub_menu3).\"";

$browse_menu['divider']="";


What is the problem
When opening a menu where there is one link without a nested list, the design tries to open it, I can not defeat it (((

Help. Thanks in advance !

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question