R
R
RushV2019-07-24 20:13:00
MODX
RushV, 2019-07-24 20:13:00

How to implement tab output from boostrap 4 in ModX?

I welcome everyone!
I decided to implement the output of tabs from boostrap 4.
Here is the code:

<nav>
  <div class="nav nav-tabs" id="nav-tab" role="tablist">
    <a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Home</a>
    <a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Profile</a>
    <a class="nav-item nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Contact</a>
  </div>
</nav>
<div class="tab-content" id="nav-tabContent">
  <div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">...</div>
  <div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">...</div>
  <div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab">...</div>
</div>

Here are the points
<nav>
  <div class="nav nav-tabs" id="nav-tab" role="tablist">
    <a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Home</a>
    <a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Profile</a>
    <a class="nav-item nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Contact</a>
  </div>
</nav>

rendered with this code:
<nav>
        <div class="nav nav-tabs color-green" id="nav-tab" role="tablist">
        
        </div>
      </nav>

Here is the chunk:
<a class="nav-item nav-link font-weight-bold" id="nav-477856-tab" data-toggle="tab" href="#nav-477856" role="tab" aria-controls="nav-477856" aria-selected="false"></a>

5d38906c80ace761934770.jpeg
How now to display in these paragraphs:
5d38913e42f47251690600.jpeg
What would each section display its own list of products
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Khristoev, 2019-07-25
@RushV

and you output tab-content?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question