Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

Utilize Content Plugins

More
IP: 107.205.203.94 13 years 7 months ago #2132 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:
Code:
$params = new JRegistry; $content = new stdClass; $content->text = $text; JDispatcher::getInstance()->trigger('onContentPrepare', array('mod_latestnewsenhanced.article', &$content, &$params, 0)); $text = $content->text;
More
IP: 207.229.172.231 13 years 7 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.
More
IP: 107.205.203.94 13 years 7 months ago #2138 by dfritsch
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...
More
IP: 207.229.172.231 13 years 7 months ago #2140 by admin
Replied by admin on topic Re: Utilize Content Plugins
Indeed, not really common :-)
Thanks for the feedback!

Olivier.