News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

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 2 Guests 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.
  •