Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • joomlafans Friend
    #973866

    Greetings. How can I create a side tab (check attached image)that displays the latest and most read articles from one category only?

    thank you


    1. tab
    pavit Moderator
    #973874

    Hi

    First you will need to create a custom module with below code and publish it in sidebar-1 position

    Code :

    <div><!-- Nav tabs -->
    <ul class="nav nav-tabs">
    <li class="active"><a href="#home" data-toggle="tab">Most read</a></li>
    <li><a href="#profile" data-toggle="tab">Latest news</a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
    <div id="home" class="tab-pane active">{loadposition tab-1}</div>
    <div id="profile" class="tab-pane">{loadposition tab-2}</div>
    </div>
    </div>

    Then create an articles category module and publish it in tab-1 position and a latest news module published in tab-2 position

    Regards


    1. Screenshot-at-ott-05-23-12-56
    joomlafans Friend
    #974047

    Hi
    This module already exists as default. I would like to create another one for a single category.
    when I follow your steps it keeps changing the default module.

    pavit Moderator
    #974185

    Modify code above as showed below to add a new tab position.

    <!-- Tab panes -->
    <div class="tab-content">
    <div id="home" class="tab-pane active">{loadposition tab-1}</div>
    <div id="profile" class="tab-pane">{loadposition tab-2}</div>
    <div id="profile2" class="tab-pane">{loadposition tab-3}</div>
    </div>
    </div>

    Publish a new module in tab-3 position

    Regards

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 3 replies, has 2 voices, and was last updated by  pavit 8 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum