-
AuthorPosts
-
joomlafans Friend
joomlafans
- Join date:
- April 2014
- Posts:
- 74
- Downloads:
- 8
- Uploads:
- 16
- Thanks:
- 32
- Thanked:
- 9 times in 1 posts
October 5, 2016 at 8:52 pm #973866Greetings. How can I create a side tab (check attached image)that displays the latest and most read articles from one category only?
thank you
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 5, 2016 at 9:14 pm #973874Hi
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
joomlafans Friendjoomlafans
- Join date:
- April 2014
- Posts:
- 74
- Downloads:
- 8
- Uploads:
- 16
- Thanks:
- 32
- Thanked:
- 9 times in 1 posts
October 6, 2016 at 8:26 am #974047Hi
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 Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 6, 2016 at 3:33 pm #974185Modify 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
1 user says Thank You to pavit for this useful post
AuthorPostsViewing 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
Jump to forum