× Requests and support related to jBackend.

Getting additional fields in content plugin

  • neosdesign
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #4164 by neosdesign
Hi there, I am trying to grab some additional fields in the content plugin that are stored in a table created by Seblod.

I have the following query in content.php:
// Join on seblod table
  $query->select('s.article_image AS article_image, s.article_subtitle AS subtitle')
        ->join('LEFT', '#__cck_store_item_content AS s on s.id = a.id');

I then have the following in what seems to be the appropriate places:
$item['subtitle'] = $article->subtitle;
or
$response['subtitle'] = $article->subtitle;

When a pull up the JSON output with postman, I see "subtitle": null.

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

More
9 years 3 months ago #4168 by admin
Have you tried to dump the result of the query select?
If the query returns the proper result, send me an email at info(at)selfget.com with the plugin code and I will fix it for your.

Kind regards,
Luigi

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

Time to create page: 0.134 seconds