× Requests and support related to jBackend.

How can I get content module subcategory

  • linkmasr
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #4639 by linkmasr
I'm newbia jBackend

How can I get content module subcategory ?
and articles by subcategory ?

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

More
8 years 4 months ago #4641 by admin
Replied by admin on topic How can I get content module subcategory
Hi,
documentation for content module is available here:

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

For the list of categories you have the following additional parameters:
rootid=<R> (optional)
recursive=<true or 1> (optional)
countitems=<true or 1> (optional)

If rootid is specified, starts to get subcategories from the specified category id instead of the root category. If recursive is true or 1, get categories and all subcategories, otherwise get only one level (default). If countitems is true or 1, return the number of articles of each category, otherwise do not return this information (default). Category id can be "root" for root node.


For the list of articles you have the following additional parameters:
catid=<C> (optional)
maxsubs=<S> (optional)
featured=<F> (optional)
limit=<L> (optional)
offset=<O> (optional)
orderby=<field> (optional)
orderdir=<dir> (optional)

Max subs:
Number of subcategories to include (default 0=none)


Kind regards

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

Time to create page: 0.137 seconds