Title: Bloc pour CiviCRM
Author: Bastien Ho
Published: <strong>11 février 2022</strong>
Last modified: 23 mars 2026

---

Recherche d’extensions

![](https://ps.w.org/blocks-for-civicrm/assets/icon.svg?rev=2676999)

# Bloc pour CiviCRM

 Par [Bastien Ho](https://profiles.wordpress.org/bastho/)

[Télécharger](https://downloads.wordpress.org/plugin/blocks-for-civicrm.1.4.6.zip)

 * [Détails](https://fr.wordpress.org/plugins/blocks-for-civicrm/#description)
 * [Avis](https://fr.wordpress.org/plugins/blocks-for-civicrm/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/blocks-for-civicrm/#installation)
 * [Développement](https://fr.wordpress.org/plugins/blocks-for-civicrm/#developers)

 [Support](https://wordpress.org/support/plugin/blocks-for-civicrm/)

## Description

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](https://docs.civicrm.org/sysadmin/en/latest/integration/wordpress/):
«
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.6

 * Test up to WP 6.9

### 1.4.5

 * Catch civicrm’s crashes in block preview
 * Prevent links and buttons from being clickable in preview

### 1.4.4

 * Fix dependency for php8.4
 * Move block API version to 3
 * Update dependencies to latest version
    - wordpress/block-editor: v15.2.0
    - wordpress/blocks: v15.2.0
    - wordpress/components: v30.2.0
    - wordpress/element: v6.29.0
    - wordpress/hooks: v4.29.0
    - wordpress/i18n: v6.2.0
    - wordpress/scripts: v30.22.0
    - wordpress/server-side-render: v6.5.0

### 1.4.3

 * Update contact of error reports
 * Set php8.4 as max supported version
 * Optimize deployment

### 1.4.2

 * Fix warning for too early i18n

### 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

## Blocs

Cette extension fournit 1 bloc.

 *   CiviCRM component Block for CiviCRM

## Installation

 1. Installez, activez et configurez CiviCRM (si ce n’est déjà fait)
 2. Installez et activez **Blocks for CiviCRM** comme n’importe quelle extension.
 3. Dans l’éditeur, rechercher le bloc « Composant CiviCRM »

## Avis

Il n’y a aucun avis pour cette extension.

## Contributeurs/contributrices & développeurs/développeuses

« Bloc pour CiviCRM » est un logiciel libre. Les personnes suivantes ont contribué
à cette extension.

Contributeurs

 *   [ Bastien Ho ](https://profiles.wordpress.org/bastho/)
 *   [ aureliefoucher ](https://profiles.wordpress.org/aureliefoucher/)

“Bloc pour CiviCRM” a été traduit dans 1 locale. Remerciez [l’équipe de traduction](https://translate.wordpress.org/projects/wp-plugins/blocks-for-civicrm/contributors)
pour ses contributions.

[Traduisez « Bloc pour CiviCRM » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/blocks-for-civicrm)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/blocks-for-civicrm/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/blocks-for-civicrm/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/blocks-for-civicrm/)
par [RSS](https://plugins.trac.wordpress.org/log/blocks-for-civicrm/?limit=100&mode=stop_on_copy&format=rss).

## Méta

 *  Version **1.4.6**
 *  Dernière mise à jour **il y a 4 semaines**
 *  Installations actives **70+**
 *  Version de WordPress ** 5.4 ou plus **
 *  Testé jusqu’à **6.9.4**
 *  Langues
 * [English (US)](https://wordpress.org/plugins/blocks-for-civicrm/) et [French (France)](https://fr.wordpress.org/plugins/blocks-for-civicrm/).
 *  [Traduisez la dans votre langue](https://translate.wordpress.org/projects/wp-plugins/blocks-for-civicrm)
 * Étiquettes
 * [block](https://fr.wordpress.org/plugins/tags/block/)[civicrm](https://fr.wordpress.org/plugins/tags/civicrm/)
   [crm](https://fr.wordpress.org/plugins/tags/crm/)[gutenberg](https://fr.wordpress.org/plugins/tags/gutenberg/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/blocks-for-civicrm/advanced/)

## Évaluations

Aucun avis n’a encore été envoyé.

[Your review](https://wordpress.org/support/plugin/blocks-for-civicrm/reviews/#new-post)

[Voir tous les avis](https://wordpress.org/support/plugin/blocks-for-civicrm/reviews/)

## Contributeurs

 *   [ Bastien Ho ](https://profiles.wordpress.org/bastho/)
 *   [ aureliefoucher ](https://profiles.wordpress.org/aureliefoucher/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/blocks-for-civicrm/)

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](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)