A
A
Alex Fastovets2015-06-04 15:34:30
Joomla
Alex Fastovets, 2015-06-04 15:34:30

Joomla + Wikit | How to implement the correct work of CMS and framework?

Hello.
There is a question about the correct work of the framework and Joomla 3 .
Since the standard Bootstrap is almost to my liking, I decided to use Uikit .
With the connection, there are no problems at all, everything is simple and clear. But in use ..
For example: I make a menu, in index.php I insert:

<?php if ($this->countModules('menu')) : ?>
    <nav class="navigation" role="navigation">
        <jdoc:include type="modules" name="menu" style="none" />
    </nav>
<?php endif; ?>

it gives me in HTML:
<ul class="nav menu">
  <li class="item-101 current active">
    <a href="/www.joomla3.com/">Главная</a>
  </li>
  <li class="item-102 deeper parent">
    <a href="/www.joomla3.com/o-nas.html">О нас</a>
  </li>
  <li class="item-103">
    <a href="/www.joomla3.com/reshenie.html">Решение</a>
  </li>
  <li class="item-104">
    <a href="/www.joomla3.com/servis.html">Сервис</a>
  </li>
  <li class="item-105 deeper parent">
    <a href="/www.joomla3.com/novosti.html">Новости</a>
  </li>
  <li class="item-106">
    <a href="/www.joomla3.com/kontakty.html">Контакты</a>
  </li>
</ul>

and I suppose I want a menu like Off-canvas , I insert:
<?php if ($this->countModules('menu')) : ?>
<button class="uk-button" data-uk-offcanvas="{target:'#my-id'}">Меню</button>

<div id="my-id" class="uk-offcanvas">
    <div class="uk-offcanvas-bar">
        <div class="uk-panel">
      <nav class="navigation" role="navigation">
        <jdoc:include type="modules" name="nav" style="none" />
      </nav>
    </div>
    </div>
</div>
<?php endif; ?>

and in the end I get this: when you click on the menu, the sidebar opens, and there f*g understand what ..
I am redefining the menu module, and this is what drives me into a stupor:
we have classes as standard:
  • current
  • active
  • deeper
  • parent

and in Uikit:
  • uk active
  • uk parent
  • uk-nav-header
  • uk-nav-divider

Then, add aria-expanded object properties and data-attributes to the Uikit menu.
So the main question is, how do I do it all right? How to override the module itself!? I haven’t worked with frameworks before, and now I came across and I understand that I don’t understand anything at all!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2015-06-04
@Sanes

Is there a framework for Joomla! Master 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question