Counter Entities

A Counter entity provides a counter, which will be incremented depending on the value of fields in a submitted form. You can use counter entities among other things to add voting features in your page, as well as a wide variety of counters only limited by your own imagination.

The counter entities has a dialog where you can specify which argument should be used as basis for the counting, as well as what value it should contain in order to count. You can also change the value of the counter itself from the dialog. The counter is incremented whenever an argument posted to a location contain a specific value.

Here is an example of a form that affect a counter:

Do you agree?

Yes
No

visitors has agreed so far!

In this example the form is submitted to the same page that contain the form. Usually the form will be submitted to another page with the counter.

Installing the Counter Entities Component

  1. Download the Counter Entities archive.
  2. Unstuff the archive (most browsers will do this for you).
  3. Find the appropriate version of the component in the folder that best matches your version of Interaction.
  4. Put the component file in the Components folder of Interaction
  5. Restart Interaction to activate the component.

Further Examples


This site is enhanced with Interaction.