Answer the question
In order to leave comments, you need to log in
How to display all AJAX news on button click?
Hi all!
through bootstrap tabs displayed news on the main page
Tab - Category 1
{custom category="1,2,3" template="shortstory" order="title" sort="desc" limit="15"}
{custom category="4" template="shortstory" order="title" sort="desc" limit="15"}
{custom category="5" template="shortstory" order="title" sort="desc" limit="15"}
Answer the question
In order to leave comments, you need to log in
You need to edit cms, php, sql queries, but if it's simple, then install the module: BlockPRO
Under each "custom" add another "custom", without the limit parameter, but with the from parameter. We put each new tag in a hidden div-container, next to the button for display.
Example for first tab, need jquery
{custom category="1,2,3" template="shortstory" order="title" sort="desc" limit="15"}
<br />
<button onclick="$(this).next('div').show()">Показать все</button>
<div style="display:none">
{custom category="1,2,3" template="shortstory" order="title" sort="desc" from="15"}
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question