× Requests and support related to jBackend.

jBackend categories

  • yves-k
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 11 months ago #3391 by yves-k
jBackend categories was created by yves-k
Hello,

Very clean and efficient service, thank you.

Why is category limited to com_content ?
Could we select an 'extension' parameter (default to 'com_content')

Best regards

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

More
9 years 11 months ago #3394 by admin
Replied by admin on topic jBackend categories
Hi,
the reason is that API to export are implemented through plugins and (usually) each plugin is dedicated to a single extension (e.g. com_content) to avoid confusion and facilitate modularity.

But is not clear what you need, if you could explain me with additiona details I could add in the next release.

Kind regards,
Luigi

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

  • yves-k
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 11 months ago #3396 by yves-k
Replied by yves-k on topic jBackend categories
Hello Luigi,

Think I understand your point of view.

But a category is a Joomla structural object by itself
So, if we only need categories data your content plugin does the job with only one parameter more.
If we need more info, ok, it has to be in another plugin.

Once again, ververy nice solution.
Thank you very much for this very good job.

PS : We will create plugins (first for SolidRes) .

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

More
9 years 11 months ago #3399 by admin
Replied by admin on topic jBackend categories
And I understand your point of view.
But if you take a look at the content plugin (and I guess you will if you want to extend jBackend with your plugins) you will then figure out why the categories are restricted to com_content only.

Each plugin is written to "mimic" the behavior of the original extension, so the snippet to retrieve categories is almost the same used by Joomla and based on this principle:
$categories = JCategories::getInstance('Content', $options);

In this way I can deal with tree and nested categories and ACL just exploiting the original code. This is the trend for all existing plugins (first I trace the original extension code, then I replicate to produce json responses).

And the original Joomla code doesn't allow to get non-content categories, so this is the reason I should add a new snippet in the content plugin or (at this point better for isolation) a new different plugin.

So if you need help to extend features just let me know.

Kind regards,
Luigi

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

Time to create page: 0.161 seconds