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

jdownlods content plugin fails on introtext and fulltext

Started by marcodings, 23.12.2019 17:42:50

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marcodings

Joomla article texts are "split" up in three fields (text, introtext and fulltext), the jdowloads plugin only "processes" the "$article->text" which seems to work with core content layouts, this however is NOT enough.

A custom alternate layout that uses "$article->introtext" and/or "$article->fulltext" will fail in having jdownloads rendered.

To fix, At plugins/content/jdownloads/jdownloads.php:170

$article->introtext = preg_replace_callback($regex, "jd_file_callback", $article->introtext);
$article->fulltext = preg_replace_callback($regex, "jd_file_callback", $article->fulltext);

should be added to ensure full processing of an article texts
  •  

ColinM

Hi
Thankyou for your very useful observation.Think this only applies when using a Readmore - is that correct?Colin
Colin M
  •  

marcodings

Nope, This applies to any article using an alternate article layout or override in the template that uses introtext and or fulltext for the rendering of an article.
  •