| 28 | == Installation == |
| 29 | |
| 30 | === Plone 3, 4 buildout === |
| 31 | |
| 32 | If you are using buildout to manage your project, you can do this: |
| 33 | |
| 34 | * Add quintagroup.plonecaptchas to the list of eggs to install in the buildout.cfg file: |
| 35 | {{{ |
| 36 | [buildout] |
| 37 | ... |
| 38 | eggs = |
| 39 | ... |
| 40 | quintagroup.plonecaptchas |
| 41 | }}} |
| 42 | |
| 43 | * Tell the plone.recipe.zope2instance recipe to install a ZCML slug for this product: add quintagroup.plonecomments and quintagroup.plonecomments-overrides to zcml area of a buildout.cfg file: |
| 44 | |
| 45 | {{{ |
| 46 | [instance] |
| 47 | recipe = plone.recipe.zope2instance |
| 48 | ... |
| 49 | zcml = |
| 50 | quintagroup.plonecaptchas |
| 51 | }}} |
| 52 | |
| 53 | * Re-run buildout with: |
| 54 | |
| 55 | {{{ |
| 56 | $ ./bin/buildout |
| 57 | }}} |
| 58 | |
| 59 | * Restart the Zope server with the following command in the terminal: |
| 60 | |
| 61 | {{{ |
| 62 | $ ./bin/instance restart |
| 63 | }}} |
| 64 | |
| 65 | * Activate Plone Captchas via Quickinstaller in Plone: Site Setup -> Add-ons. |
| 66 | |
| 67 | ==== Important Note ==== |
| 68 | |
| 69 | With quintagroup.plonecaptchass you have to be care with the version of the package you need on your instance: |
| 70 | |
| 71 | * For Plone 4 versions - use quintagroup.plonecaptchas 4.x releases. In your buildout.cfg file's egg section set product version: |
| 72 | {{{ |
| 73 | [buildout] |
| 74 | .... |
| 75 | eggs = |
| 76 | ... |
| 77 | quintagroup.plonecaptchas >=4.0 |
| 78 | }}} |
| 79 | |
| 80 | * For Plone 3 versions - use quintagroup.plonecaptcha 3.x releases. In your buildout.cfg file's egg section set product version: |
| 81 | {{{ |
| 82 | [buildout] |
| 83 | .... |
| 84 | eggs = |
| 85 | ... |
| 86 | quintagroup.plonecaptchas >=3.0,<4.0 |
| 87 | }}} |
| 88 | |
| 89 | === Traditional Zope 2 Instance for Plone 3 === |
| 90 | |
| 91 | To install quintagroup.plonecaptchas into the global Python environment (or a workingenv), using a traditional Zope 2 instance, you can do this: |
| 92 | |
| 93 | * Copy '''quintagroup''' folder to your instance ''/lib/python'' directory. |
| 94 | * Create a file called '''quintagroup.plonecaptchas-configure.zcml''' in your instance ''/etc/package-includes'' directory. The file should only contain this: |
| 95 | {{{ |
| 96 | <include package="quintagroup.plonecaptchas" file="configure.zcml" /> |
| 97 | }}} |
| 98 | * Restart the Zope server, for example, with the following command in the terminal: |
| 99 | {{{ |
| 100 | $ ./bin/zopectl restart |
| 101 | }}} |
| 102 | * Activate Plone Captchas via Quickinstaller in Plone: Site Setup -> Add-ons. |
| 103 | |
| 104 | === Plone 2.x === |
| 105 | |
| 106 | For Plone 2.x versions - use [http://plone.org/products/plone-captchas/releases/1.3.4 1.3.4 version] of qPloneCaptchas product to add captcha to PloneFormMailer forms. |
| 107 | |