Hi,
I need to create a voting system for a project.
It is an architectural competition and the public can vote online for the best architectural project. Projects are created with TOOLSET TYPES (custom post type). Is there documentation, a similar concrete example made with TOOLSET ?
Thank you in advance for your cooperation.
Olivier Foguenne
Hello, there's nothing built-in to Toolset that will create this type of voting system automatically, but I think you will be able to use the Toolset suite to help construct something like this using various components. For example, you could use Toolset Forms to create a new Vote post for each vote received on the front-end of the site. That Vote post would be a child of the Project post which was voted for. Then you could use Views to "count" the number of Votes for each project, using a post relationship filter.
This is the simplest implementation I can think of. If your system is very complex, we could discuss other requirements.
Hi Christian,
Thanks for your answer.
Do you think it is possible to prevent multiple voting ?
If the voters must log in first, then it's not difficult to prevent multiple voting, it's fairly simple. There is a technique described here you could use as a reference: https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/
However, if you want to allow guests to vote, there's nothing in Toolset that will help you restrict access to that voting form for only one submission per visitor. It would require some custom code that falls outside the scope of what we offer here in the support forums. We have a couple of contractor portals available if you want to connect with a skilled, independent developer who could create that restriction: https://toolset.com/contractors https://codeable.io/developers/toolset/