Jump to content

skoskie

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by skoskie

  1. Thank you for that suggestion. However the headache is part of learning the platform, so I'm accepting it.
  2. Hi. I'm working on building my first processwire site, and I want to make sure I'm getting it right. I'd appreciate any feedback. I have a `vendor.php` template/model that will contain companies. I need to give users the ability to rate (1-5) that vendor. So I think I need to build a `vendor_rating.php` model/template with fields `rating` (int), `user` (ref), `vendor` (ref), and perhaps a textarea for `review`. Then, in the vendor template I will call and cache the average vendor rating for display. I don't actually want to display the individual ratings anywhere, so I guess I still need to figure out how to do an ajax call from the front end. ### Here's the thing. This structure is almost identical to "comments" with only one extra field for the `rating`. So should I just extend that in some way? Or stick to my current path and make a new model/template? Thanks!
×
×
  • Create New...