Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Utilize Content Plugins

More
11 years 6 months ago #2132 by dfritsch
Utilize Content Plugins was created by dfritsch
Hi,

Just installed the plugin today and it worked great, but I had to hack it a bit, since I wanted to apply content plugins to the intro text before it was displayed. Would be a cool addition to the plugin and only take a couple lines of code. I added the following code into the getText function of the helper.php file:
$params = new JRegistry;
$content = new stdClass;
$content->text = $text;
JDispatcher::getInstance()->trigger('onContentPrepare', array('mod_latestnewsenhanced.article', &$content, &$params, 0));
$text = $content->text;

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

More
11 years 6 months ago #2134 by admin
Replied by admin on topic Re: Utilize Content Plugins
Hello,
thank you very much for the suggestion.
I did not add this functionality to this point because I did not think there would be a need for it, as the module is intended just to show short snippets of text.
I will add this in the next update to make it available to people who need to use the module in a more extensive way...
That will be available only if the text is shown in full.

Olivier.

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

More
11 years 6 months ago #2138 by dfritsch
Replied by dfritsch on topic Re: Utilize Content Plugins
Thanks for the response.

I use the "Easiertube" plugin for adding youtube and vimeo videos to articles. I wanted to have some videos at the top of the blog posts and have them included so I needed to use the content plugins. Not sure that this is that common...

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

More
11 years 6 months ago #2140 by admin
Replied by admin on topic Re: Utilize Content Plugins
Indeed, not really common :-)
Thanks for the feedback!

Olivier.

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