How to setup? Print E-mail
(6 votes)

Pre-Requirements


Joomla! 2.5
  1. Install and enable Core Design Scriptegrator plugin.

 

Setup

  1. Install the plugin.
  2. Don't forget to publish the plugin.


Usage

Open article to editation and write the following mark:

{petition id="test_petition"}

Please do not forget to set petition ID. All signatures will be categorized by their ID.
Also do not use more then 1 petition in one article.



Fields

There are the following fields available in Core Design Petitions plugin:

Displayed and required by default:

  • fullname
  • email (not displayed publicly)
Optional fields:
  • age
  • address
  • country
  • postcode
  • note

Now the funny part. If you want to display the optional fields like "age" or "country", just use the FIELDS override within {petition} mark, for example:

{petition id="test_petition" fields="age, country"}
Use a comma to separate the optional fields as you can see in example above.

Do you want to have some optional field required the same way as "fullname" or "email" fields?
Then just write the exclamation mark (!) at start of the field name, that means "'!age" or "!country".


 

Inline overrides

  • id
    Values: string
    Petition ID.
  • closed
    Values: 1 or 0 (integer)
    Close petition.
  • fields
    Values: age, address, country, postcode, note
    Display optional fields.
  • goal
    Values: integer
    Signatures goal reaching. In case the goal is reached, the petition signing is disabled automatically.
  • uitheme
    Values: smootness, ui-lightness, vader...
    Theme for FAQ plugin based on jQuery UI ThemeRoller. The all allowed themes are stored in Scriptegrator plugin folder:
    /plugins/system/cdscriptegrator/libraries/jquery/theme

Examples

{petition id="test_petition" fields="age, address, country, postcode, note"}

{petition id="test_petition2" fields="!age, address, !country, postcode, note"}

{petition id="test_petition3" goal="500"}

{petition id="test_petition4" closed="1"}

{petition id="test_petition5" uitheme="ui-darkness" goal="200" fields="country, note"}

 

Administration

Please login on FRONTEND with related article privileges (article author, publisher... super administrator) and visit the article where Petitions plugin is located.