Pétition n°1 :

PETITON CONTRE LE MAUVAIS TEMPS

{petition id="1" goal="200" fields="!age, address, !country, postcode, note"} 

{jb_iconic_arrow}Usage{/jb_iconic_arrow}

Open article to editation and write the following mark : 

{jb_redbox} petition id="test_petition"  {/jb_redbox}

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.

{jb_iconic_arrow}Fields{/jb_iconic_arrow}

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

Displayed and required by default: 

  • fullname
  • email (not displayed publicly)

Optional fields:

  • {jb_purple}age{/jb_purple}
  • {jb_purple}address{/jb_purple}
  • {jb_purple}country{/jb_purple}
  • {jb_purple}postcode{/jb_purple}
  • {jb_purple}note{/jb_purple}

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".

{jb_iconic_arrow}Inline overrides{/jb_iconic_arrow}

  • 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

{jb_iconic_arrow}Examples{/jb_iconic_arrow}

{jb_redbox}petition id="test_petition" fields="age, address, country, postcode, note"{/jb_redbox} {jb_redbox}petition id="test_petition2" fields="!age, address, !country, postcode, note"{/jb_redbox} {jb_redbox}petition id="test_petition3" goal="500"{/jb_redbox} {jb_redbox}petition id="test_petition4" closed="1"{/jb_redbox} {jb_redbox}petition id="test_petition5" uitheme="ui-darkness" goal="200" fields="country, note"{/jb_redbox}


{jb_iconic_arrow}Administration{/jb_iconic_arrow}
login on FRONTEND with related article privileges (article author, publisher... super administrator) and visit the article where Petitions plugin is located.

{jb_info}adresse originale : http://www.greatjoomla.com/tutorials/core-design-petitions-plugin/how-to-setup-petitions-plugin.html{/jb_info}