Search
Other Articles Anywhere questions
Forum

[solved ] How splitting articles or nesting

Nicolas OLIVIER's Avatar Nicolas OLIVIER
Hi,
We are looking for a wao to for example :
-getting the last articles of a category
-having the 2 first displayed in a certain way (title/img/published day for example)
-and the last ones in another way (title/readmore)

It's the com_content blog view I like to create : multiple articles loops but which don't recall the already called articles of course.

Thanks

For J!3.10 😉
Peter van Westen's Avatar Peter van Westen ADMIN
You can do this in multiple ways.

For instance using 2 {articles} tags, using limits and offsets:
{articles category="Animals" ordering="created DESC" limit="2"}
   ...data tags for first 2...
{/articles}

{articles category="Animals" ordering="created DESC" limit="3-10"}
   ...data tags for the next 8...
{/articles}
See: docs3.regularlabs.com/articlesanywhere/p...settings#limit-range

Or using if tags:
{articles category="Animals" ordering="created DESC" limit="10"}
{if count < 3}
   ...data tags for first 2...
{else}
   ...data tags for the next 8...
{/if}
{/articles}
See: docs3.regularlabs.com/articlesanywhere/g...urther/if-structures
Please post a rating at the Joomla! Extensions Directory
Nicolas OLIVIER's Avatar Nicolas OLIVIER
Hooo the limit-range ! Nice !
Thanks for that
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription