Skip to content

jdart/FieldTypeRate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FieldTypeRate 0.0.2

About FieldTypeRate

This is a module that adds a star rating field for the Processwire CMS. This module is based on the jQuery plugin raty;

Usage

This module assumes jQuery is included on your page before you render the field.

Add the field to your template the normal way. In your template file you can render the stars and their related html/javascript like below.

echo $page->my_rating_field;

How it works

When a user clicks the stars, the browser will post the vote to the same page, and the stars will be replaced by a thank you message.

There is a mechanism to prevent duplicate votes inspired by @apeisa's FieldtypePoll.

The admin user can see how many votes a particular page has recieved by editing the page in the admin. The admin user can also reset the vote count in the same place.

About

FieldTypeRate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published