0
Hello,
is there any chance to let a plugin working if I insert it inside the artist's review?
I would like to have a mini artist gallery using 3rd party plugin, but the inserted code {gallery} does not working.
Do you think is possible?
Thank you.
is there any chance to let a plugin working if I insert it inside the artist's review?
I would like to have a mini artist gallery using 3rd party plugin, but the inserted code {gallery} does not working.
Do you think is possible?
Thank you.
Accepted Answer
0
Hello Steve,
you're close in the artist's view.html.php file you need somethign likse this:
BEFORE the artist var is passed into the layout.
you're close in the artist's view.html.php file you need somethign likse this:
$intro->text = $artist->review;
$dispatcher =& JDispatcher::getInstance();
$plug_params = new JRegistry('');
JPluginHelper::importPlugin('content');
$results = $dispatcher->trigger('onContentPrepare', array ('com_muscol.artist', &$intro, &$plug_params, 0));
$artist->review = $intro->text ;
BEFORE the artist var is passed into the layout.
Responses (6)
-
Accepted Answer
-
Accepted Answer
0Any suggestion? I found that code in the main page that allows to process the plugis inside the main page of MusCol.
if($params->get('processcontentplugins')){
$dispatcher =& JDispatcher::getInstance();
$plug_params = new JRegistry('');
JPluginHelper::importPlugin('content');
$results = $dispatcher->trigger('onContentPrepare', array ('com_muscol.artists', &$intro, &$plug_params, 0));
$results = $dispatcher->trigger('onContentPrepare', array ('com_muscol.artists', &$intro2, &$plug_params, 0));
}
But honestly I don't know where paste it... -
Accepted Answer
-
Accepted Answer
0germi,
Any reason why this code / feature isn't added to MC by default for the artist, album, and song review content fields? Seems like it has been asked a few times before and would make MC far more powerful as well as perform like most people would expect it to. Would be a very nice default feature for MC!
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »