Welcome, Guest
Username: Password: Remember me

TOPIC: WHERE onr_sponsored = Yes, highlight entire row

WHERE onr_sponsored = Yes, highlight entire row 3 years 7 months ago #961

  • biru32
  • biru32's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi, I would like to know if it's possible to add the following Where statement with Grid? I'm not sure how the script needs to look, but if it's possible, can someone help?

I would simply like to have the entire displayed row highlight if a particular field is displaying "Yes".

See example table: landry-web-designer.net/joomla_test/inde...icle&id=48&Itemid=57

If OnR Sponsored field is displaying "Yes" then I would like to have the entire row highlighted.

Thanks!

Jason
The administrator has disabled public write access.

Re:WHERE onr_sponsored = Yes, highlight entire row 3 years 7 months ago #968

  • tomaz
  • tomaz's Avatar
  • OFFLINE
  • Administrator
  • Posts: 723
  • Thank you received: 49
  • Karma: 8
Hi,

It is possible. However it requires a bit of programming skills. If you want to figure out by yourself, you can look at components/com_grid/views/GridView.php.

While fetching and displaying data, you have to find your field, check the value, and output a proper html.

But as I said it is quite a job.
How about posting a review on JED? Table JX, Card View JX, Paid Downloads JX
The administrator has disabled public write access.
Time to create page: 0.182 seconds