jReviews Support Forum

jReviews 1.x - jReviews Modules and Hook Components => Modules & bots => Topic started by: headmaster on January 04, 2008, 07:38:52 AM



Title: Modifying Dashboard module
Post by: headmaster on January 04, 2008, 07:38:52 AM
Hello everyone ,

I have been trying to understand how I can show my costum fields in the dashboad module.
I want to desplay author,publisher etc in the module.
Is this an easy task and do anyone here have a short description how this is done.
Been looking all over for a this , but no luck :) ...

Another thing is that I want to show starts instead of numbers. I found a clue in the forum, but I can`t find the actuall code in the dashboard module(mod----.php)

Regards
www.visionscifi.com
Frank



Title: Re: Modifying Dashboard module
Post by: Alejandro on January 04, 2008, 08:53:12 AM
The stars should show up if you select it in the module parameters. But there seems to be a bug in the latest version of either the module. I will need to look into this to fix it, rather than have everyone change files. It will take a few days though.

For the custom fields it's easy. Use the field in the module parameters that says: Custom fields [All Modes] to enter a comma separated list (without spaces) of your custom fields (i.e. jr_publisher,jr_author,etc).

Then edit the module's template file mod_jrdashboard.html to add the field tags: {JR_AUTHOR},{JR_PUBLISHER},etc.


Title: Re: Modifying Dashboard module
Post by: headmaster on January 04, 2008, 03:23:26 PM
Thank you,
but I must admit that editing the hml has not been a sucsess  :-\ .

Where am I suppose to put the tags ?


Regards

Frank


Title: Re: Modifying Dashboard module
Post by: Alejandro on January 04, 2008, 03:57:06 PM
How has it not been a success. Do you see an error, nothing?

You can put the tags anywhere after the opening tag and before it's ending patTemplate tag.

Code:
<patTemplate:tmpl name="entry" unusedvars="strip" autoclear="yes">


Title: Re: Modifying Dashboard module
Post by: headmaster on January 06, 2008, 04:07:56 PM
It was me thatwas not successful :) .

Got it now... just a small issue with placing /aligning the text. It really tried different alignments ..


Please let me know when you have a new dashbard that have a fixed stars :)

regards

Frank


Title: Re: Modifying Dashboard module
Post by: aphils on June 12, 2008, 07:21:37 PM
For the custom fields it's easy. Use the field in the module parameters that says: Custom fields [All Modes] to enter a comma separated list (without spaces) of your custom fields (i.e. jr_publisher,jr_author,etc).

Then edit the module's template file mod_jrdashboard.html to add the field tags: {JR_AUTHOR},{JR_PUBLISHER},etc.

Hi Alejandro, Amy here:
I can't get this {JR_AUTHOR} to work.  I put it in the custom fields params, and in the template.  Any ideas for how to show the author of the item? And, while we're at, the created date?

Thanks!


Title: Re: Modifying Dashboard module
Post by: Alejandro on June 12, 2008, 08:09:36 PM
Sorry, author and created date are not available in the dashboard. But the good news is they are in the jReviews 2.0 listings module. Everyone upgrade!