J-BusinessDirectory - J-BusinessDirectory Content Plugin core edits

Support Forum

 
 

 

Trying to follow the instructions but they seem outdated. I think that the core has changed since you guys wrote this. Line 254 is not it. I need to know what code snippets to place this between.

In order to show only articles from a certain business listing you will need to add the following code to the {joomla}/components/com_content/models/articles.php on line 254.
$businessId = JFactory::getApplication()->input->getInt("business_id");
if(!empty($businessId)){
// Join over the categories to get parent category titles
$query->select('company_id')
->join('inner', '#__jbusinessdirectory_company_articles as bd ON bd.article_id = a.id');
}

4 replies

Hi,

 

You can place the content at line 255. It seems that the content has moved down a little.
Line 255 should be an empty line.

Can you please post example files with the code inserted as is should in order to operate please.

administrator\components\com_content\views\article\tmpl\edit.php
components\com_content\views\form\tmpl\edit.php
components\com_content\models\articles.php

Also, since these are edits to the joomla core, do these files get written over during updates?

Hi,

 

We will update the user manual with more details and let you know when it is ready.

In the meantime could you just email me (or post here) copies of the files with the proper edits.

Thanks

 
 
 

5 Item(s)

Show per page