وضاحت
CiviCRM uses shortcode in order to insert dynamic content into WordPress pages, such as Petition, Survey, Contribution form, Membership…
As mentioned into the CiviCRM documentation:
“Currently there is no specific CiviCRM block for Gutenberg so there is no interactive way to see the options available for the shortcode.
You will need to know the format and look up IDs and options in CiviCRM before creating the shortcode in WordPress.”
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.
This way, embedding CiviCRM content into any WordPress page becomes a child’s play!
1.4.1
- Fix version propagation
1.4.0
- Add preview in editor
- Test if CiviCRM is activated before loading its options
- Load after
plugins_loaded
hook - Uses composer autoload
- Uses wp_add_inline_script to pass options to the block
- Update all dependencies to latest version
- wordpress/block-editor v12.14.0
- wordpress/blocks v12.23.0
- wordpress/components v25.12.0
- wordpress/element v5.23.0
- wordpress/hooks v3.46.0
- wordpress/i18n v4.46.0
- wordpress/server-side-render v4.23.0
- wp-reporting v1.6
1.3.4
- Update wp-reporting to v1.5.1, fix WP Notices about scripts
1.3.3
- Update wp-reporting to v1.5
1.3.2
- Fix “Undefined array key className” warning.
- Update wp-reporting to v1.4
1.3.1
- Let CiviCRM call its generated shortcode
- Update wp-reporting to v1.3
1.3.0
- Cleanup shortcode attributes (only keep those CiviCRM understands)
- Set default value for mode & hijack
- Update NPM dependencies
1.2.0
- Removes limit of options
- Uses CiviCRM API4 when possible
- Remove some PHP8+ deprecated warnings
1.1.2
- Fix Parse error on PHP7.4
1.1.1
- Fix Parse error on PHP7.4
1.1.0
- Refactor: use latest version of blocks library
- Wrap output into a div. Allows editor to add CSS classes
- Add error log report option
1.0.0
- Initial release
Upgrade notice
No particular informations
بلاڪس
واحد: هي پلگ ان 1 بلاڪ مهيا ڪري ٿو.
- CiviCRM component Block for CiviCRM
انسٽاليشن
- Install, activate and configure CiviCRM (if not done yet)
- Install and activate Blocks for CiviCRM as any plugin
- In the editor, search the block “CiviCRM Component”
جائزا
ھن پلگ ان لاءِ ڪي به رايا ناھن.
تعاون ڪندڙ & ڊولپرز
“Blocks for CiviCRM” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.
تعاون ڪندڙواحد: “Blocks for CiviCRM” 1 لوڪل ۾ ترجمو ڪيو ويو آهي. ترجمي ڪندڙن جي مهرباني سندن تعاون لاءِ.
ترجمو ڪريو “Blocks for CiviCRM” توهان جي ٻولي ۾.
ڊولپمينٽ ۾ دلچسپي؟
ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.