Language

English
How to Show Article in Module Print E-mail
Written by myOltrans    Tuesday, 28 July 2009 12:48    Last Updated on Saturday, 26 March 2016 10:07

Updated version (26 March 2016):

Recently I tried unsuccessfully to find this module on the Internet for one of my clients whose Joomla! version is 1.5. Well, I found it in my archives and decided to publish it here for anyone who hadn't upgraded yet.

Download the original Custom Content module by Ian MacLennan here.

 

Outdated version:

This is useful if you want to apply some of the content plugins to a custom HTML module. In Joomla! 1.5 the content plugins does not take effect on custom modules.

Download and install CustomContent plugin - CustomContent plugin in Joomla! Extensions or  CustomContent Plugin Development page.

This plugin will allow you to show an article in a module position.

 

You may see one of these error messages

Warning: Missing argument 3 for plgContentAvreloaded::onPrepareContent() in C:\xampp\htdocs\pulp68\plugins\content\avreloaded.php on line 88

Warning: Missing argument 3 for plgContentJwsigpro::onPrepareContent() in C:\xampp\htdocs\pulp68\plugins\content\jwsigpro.php on line 58

Warning: Missing argument 3 for plgContentJwts::onPrepareContent() in /home/savage/savindutry/demo/deskgodsite/plugins/content/jwts.php on line 28

Solution

Thanks to Brian Shaughnessy in this discussion.

In the helper.php file, line 36, change the array to:

 array (& $item, & $params, $limitstart ))

onPrepareContent can carry a third argument, which is used by many plugins. This appears to fix the problem.


blog comments powered by Disqus
 

© Copyright 2008-2015 Oltrans. Translation Agency Recourse Portal.
All rights reserved. Various trademarks held by their respective owners.

Oltrans, 152, 6-ti septemvri Bul., Plovdiv 4000 Bulgaria
General Inquiries: (Bulgaria) +359 32 511 272 | skype: Oltrans.org My status