Jump to content

Adding cat option in jmultimedia module


ManuAdam

Recommended Posts

I need help to add Category option in mod_jmultimedia . availablefor download here - http://joomlacode.org/gf/project/denvideo/frs/?action=index so that one cud get videos of a particular category only at the module place on front end. I have tried adding a few things. Like: I added --

in the file .. ..\\modules\mod_jmultimedia\mod_jmultimedia.xml , i added on line 21 under <params>:

<param name="catid" type="category" default="0" label="Category" section="com_jmultimedia" description="Selects items from a specific Category." /> and then.. in the file: ..\\modules\mod_jmultimedia\help.php .. under .....

class modJMultimediaHelper

{

/**

* Get list of medias

*

* @return array Medias list

* @param JParameter $params Module parameters\

*/

function getList(&$params) {

global $option;

I have added on the line 28 .. $type = trim($params->get('type'));

$catid = (int) $params->get('catid', 0);

After all this, though it is showing the Category Options but on selection of a particular category, it is not following the command and showing Videos of all the categories. I even tried removing other options for the list of newer/topratedetc. but it created more problem. I want to retain that other option too as it will serve the purpose of showing toprated or latest videos etc. But when selected from a particular category,it shud show videos of that category only. Please HELP! Thanks.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.