1 | # Blocks for CiviCRM |
---|
2 | Contributors: bastho, aureliefoucher |
---|
3 | Donate link: https://apps.avecnous.eu/en/product/blocks-for-civicrm/?mtm_campaign=wp-plugin&mtm_kwd=blocks-for-civicrm&mtm_medium=wp-repo&mtm_source=donate |
---|
4 | Tags: civicrm, block, gutenberg, edition, crm, petition, profile, form, survey |
---|
5 | Requires at least: 5.4 |
---|
6 | Tested up to: 6.4 |
---|
7 | Stable tag: 1.3.5 |
---|
8 | License: GPLv2 |
---|
9 | License URI: https://www.gnu.org/licenses/gpl-2.0.html |
---|
10 | |
---|
11 | Gutenberg block in place of CiviCRM shortcode |
---|
12 | |
---|
13 | ## Description |
---|
14 | |
---|
15 | CiviCRM uses shortcode in order to insert dynamic content into WordPress pages, such as Petition, Survey, Contribution form, Membership… |
---|
16 | |
---|
17 | As mentioned into the [CiviCRM documentation](https://docs.civicrm.org/sysadmin/en/latest/integration/wordpress/): |
---|
18 | "Currently there is no specific CiviCRM block for Gutenberg so there is no interactive way to see the options available for the shortcode. |
---|
19 | You will need to know the format and look up IDs and options in CiviCRM before creating the shortcode in WordPress." |
---|
20 | |
---|
21 | Knowing an object ID is not very convenient. So we've made a plugin which uses the CiviCRM API to get and display all attributes for the shortcode, directly in a simple block. |
---|
22 | |
---|
23 | This way, embedding CiviCRM content into any WordPress page becomes a child's play! |
---|
24 | |
---|
25 | ## Installation |
---|
26 | |
---|
27 | 1. Install, activate and configure CiviCRM (if not done yet) |
---|
28 | 2. Install and activate **Blocks for CiviCRM** as any plugin |
---|
29 | 3. In the editor, search the block "CiviCRM Component" |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | ## Changelog |
---|
34 | |
---|
35 | ### 1.4.0 |
---|
36 | |
---|
37 | - Add preview in editor |
---|
38 | - Test if CiviCRM is activated before loading its options |
---|
39 | - Load after `plugins_loaded` hook |
---|
40 | - Uses composer autoload |
---|
41 | - Update all dependencies to latest version |
---|
42 | - wordpress/block-editor v12.14.0 |
---|
43 | - wordpress/blocks v12.23.0 |
---|
44 | - wordpress/components v25.12.0 |
---|
45 | - wordpress/element v5.23.0 |
---|
46 | - wordpress/hooks v3.46.0 |
---|
47 | - wordpress/i18n v4.46.0 |
---|
48 | - wordpress/server-side-render v4.23.0 |
---|
49 | - wp-reporting v1.6 |
---|
50 | |
---|
51 | ### 1.3.4 |
---|
52 | |
---|
53 | - Update wp-reporting to v1.5.1, fix WP Notices about scripts |
---|
54 | |
---|
55 | ### 1.3.3 |
---|
56 | |
---|
57 | - Update wp-reporting to v1.5 |
---|
58 | |
---|
59 | ### 1.3.2 |
---|
60 | |
---|
61 | - Fix "Undefined array key className" warning. |
---|
62 | - Update wp-reporting to v1.4 |
---|
63 | |
---|
64 | ### 1.3.1 |
---|
65 | |
---|
66 | - Let CiviCRM call its generated shortcode |
---|
67 | - Update wp-reporting to v1.3 |
---|
68 | |
---|
69 | ### 1.3.0 |
---|
70 | |
---|
71 | - Cleanup shortcode attributes (only keep those CiviCRM understands) |
---|
72 | - Set default value for mode & hijack |
---|
73 | - Update NPM dependencies |
---|
74 | |
---|
75 | ### 1.2.0 |
---|
76 | |
---|
77 | - Removes limit of options |
---|
78 | - Uses CiviCRM API4 when possible |
---|
79 | - Remove some PHP8+ deprecated warnings |
---|
80 | |
---|
81 | ### 1.1.2 |
---|
82 | |
---|
83 | - Fix Parse error on PHP7.4 |
---|
84 | |
---|
85 | ### 1.1.1 |
---|
86 | |
---|
87 | - Fix Parse error on PHP7.4 |
---|
88 | |
---|
89 | ### 1.1.0 |
---|
90 | |
---|
91 | - Refactor: use latest version of blocks library |
---|
92 | - Wrap output into a div. Allows editor to add CSS classes |
---|
93 | - Add error log report option |
---|
94 | |
---|
95 | ### 1.0.0 |
---|
96 | |
---|
97 | - Initial release |
---|
98 | |
---|
99 | ### Upgrade notice |
---|
100 | |
---|
101 | No particular informations |
---|