|
Title: custom fields in dashboard Post by: mediumfries on January 10, 2007, 05:38:09 PM Hello Jreviews
I was wondering if its possible to change what the dashboard module displays from the main review title to one of the custom fields. The reason for this is that im setting up a music review section - albums/singles/live - and i want the dashboard module to display the name of the artist for instant recognition from the user. However I cant put the artist name in as the review main title because its not possible to have the same article title twice. So if later on i want to review the same artist again - i cant. Any help on this problem would be greatly appreciated Thanks. Title: Re: custom fields in dashboard Post by: Alejandro on January 10, 2007, 07:21:47 PM How about using the title alias instead for the artist? then you can just replace in the queries title for title_alias. This is in the mod_jrdashboard.php file. Try that, because what you want requires more work and I would have to get back to you later on.
Title: Re: custom fields in dashboard Post by: mediumfries on January 11, 2007, 01:53:10 PM Hello Jreviews
That could well solve my problem. However if I input things that way the title alias (or artist name) doesn't appear on the review spage anywhere. I guess this is to do more with the joomla core but how would i go about making this appear like a custom field on my reviews and not on any other content? Could I also then change dashboard mod so that it will show both title & title_alias?? And if so ... would it be possible to apply seperate css styles to those variables so that title_alias is more prominent? Dont want much eh?! ;) Title: Re: custom fields in dashboard Post by: Alejandro on January 11, 2007, 02:31:50 PM When I said to use the title alias for the artist name in my example, I did not mean for you to not use the custom fields. I thought you would use both.
Please write exactly what is it that you are looking for, there are several things now, and for which of the dashboard modes. Understand that this type of request requires code changes here and there and takes some time. I will have to find the time to help you ;) Title: Re: custom fields in dashboard Post by: mediumfries on January 11, 2007, 03:35:05 PM Apologies I don't think i quite understood what you meant.
Right - What I want exactly is a module on the frontpage that will list the latest 5-10 reviews from each category - just like the dashboard mudule does now. The problem is that the dashboard module lists the item title - which i have set as the artists name. This means that I cant put the same artist i twice. big problem for me. If i set the artists name as one of the custom fields and the album as the item title - the artists name doesn't appear in the dasboard module - so its not much use to me. What i would ideally like is for the dashboard module to show 2 fields - a) item title and one custom or b) just one of the custom ones. so i could have the artists name on the frontpage & put that artist in as many times as i wanted without it saying it already exists. Thanks for your help on this one jReviews Your helpfulness on this and previous issues has been remarkable :) Title: Re: custom fields in dashboard Post by: Alejandro on January 11, 2007, 03:38:18 PM Ok. What about removing the restriction for duplicate titles? That's possible and much simpler than the other stuff. If you would like to do that I can tell you how now, otherwise, please be patient.
Title: Re: custom fields in dashboard Post by: mediumfries on January 11, 2007, 04:24:48 PM The whole custom fields in module thing would be the perfect solution for me. But I guess your a busy busy fella, so i would be very happy with just the restriction removed for now.
If at some point you do those module mods and you remember this post then let me know. Thanks again Jreviews There wont be any repercussions from removing the restriction will there? Title: Re: custom fields in dashboard Post by: Alejandro on January 11, 2007, 04:35:00 PM To remove the restriction, go to jreviews.php, look for:
Quote if ($database->loadResult() && $isNew && $sTitle != '') {// if item exists and we are not in edit mode comment it and add a line below Quote //if ($database->loadResult() && $isNew && $sTitle != '') {// if item exists and we are not in edit mode if (1 == 2) { The restriction is there originally to prevent duplicate postings of the same item, but you should try it out and see if you have that problem by pressing the back button after submit for example. Title: Re: custom fields in dashboard Post by: mediumfries on January 11, 2007, 06:44:18 PM Great stuff
There shoudnt be a problem with dupes as its not a public review site we are running. Theres onyl one user controlling the whole thing. Thanks again! Mediumfries Title: Re: custom fields in dashboard Post by: mediumfries on June 11, 2008, 07:39:43 AM Hey Alejandro
This fix for allowing multiple entries with the same title doesnt seem to apply to the latest jreviews release. What part of jreviews.php should be changed now? Thanks Mike Title: Re: custom fields in dashboard Post by: mediumfries on June 11, 2008, 08:20:21 AM Hi sorry
The version of Jreviews I am actually running is 1.2 not quite the latest one. Thanks Title: Re: custom fields in dashboard Post by: Alejandro on June 11, 2008, 11:19:30 AM It does apply, maybe the code is a bit different, but the comment is the same and the replacement is also the same.
Powered by SMF 1.1.7 |
SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com |