News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Trigger the onCategoryChangeState event when publish or unplublish a download

Started by miguelbgouveia, 10.03.2016 16:14:26

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

miguelbgouveia

I'm using jDownloads in a specific project implemented in Joomla that use the smart search component. To use the smart search for the jdownloads documents I had to implement a joomla plugin. The problem is that in jdownload code base I need to add a line of code to trigger the onCategoryChangeState event. This is essential to update the smart search index. There is a place where I can suggest this code change? Is jdownloads open to code changes like open sources projects?

If not there is the line of code to add to the line nº 1133 of the publish function in the category.php file:

// Trigger the OnCategoryChangeState event.
$dispatcher->trigger('onCategoryChangeState', array($context, $pks, $value));

Thanks.
  •  

Arno

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •