× Requests and support related to jBackend.

Select range of articles from one category

  • sandi66b
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago #5045 by sandi66b
Hello, I was just wondering if it's possible to retrive with a get call articles from one categoriy with limit 10, and in another call another 10 articles.

Now I am using /rest/get/content/articles?catid=9&limit=10&orderby=id&orderdir=desc and I want to receive another 10.
Will I need to create a custom module for that? Or how can i achieve this?

Thank you.

Regards!

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #5056 by admin
Replied by admin on topic Select range of articles from one category
Absolutely not, You already have a couple of parameters for pagination:

www.selfget.com/documentation/jbackend-joomla30/content-module-api.html

limit=<L> (optional)
offset=<O> (optional)


So you are just using the limit, add the offset and you cna move the "cursor" over the pages.

Kind regards,
Luigi
The following user(s) said Thank You: sandi66b

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #5062 by happyxinqiang
Replied by happyxinqiang on topic Select range of articles from one category
HI, I want to know , does zoo have this feature ? I use ZOO as my content manager, for example , I want to load 10 posts from api , when I scroll to bottom , I want to load another 10 posts , Is it possible now ?

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #5067 by admin
Replied by admin on topic Select range of articles from one category
Hi,
I just realized that the online documentation for Zoo is not updated (I will do ASAP). Yes, the params are:
      // Get the list of items
      /* PARAMS:
          action=get
          module=zoo
          resource=items
          category=<C>
          limit=<L> (optional)
          page=<P> (optional)
          app=<app id>
      */

Kind regards,
Luigi
The following user(s) said Thank You: happyxinqiang

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #5068 by happyxinqiang
Replied by happyxinqiang on topic Select range of articles from one category
Thanks for your replay, really amazing product, jBackend save me a lot of time to make a Mobile app with Joomla as a backservice , thanks a lot again

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #5070 by admin
Replied by admin on topic Select range of articles from one category
You are welcome, and don't miss the update I will release in a couple of days...

Please Log in or Create an account to join the conversation.

Time to create page: 0.164 seconds