Skip to content

A WordPress block to insert a basic search form into post types.

License

Notifications You must be signed in to change notification settings

imath/formulaire-de-recherche

Repository files navigation

Formulaire de recherche

Français 🇫🇷

Bonjour !

Je suis un bloc WordPress inscrit sur l'Entrepôt !

Sans l'extension de l'Entrepôt (à partir de sa vesion 1.5.0) : je suis orphelin, alors installez l'Entrepôt pour me retrouver dans ses types de bloc disponibles du menu "Types de bloc" de votre administration WordPress ! Vous pourrez alors m'installer, m'activer et me mettre à jour d'un simple clic !

Capture d'écran

Dans l'éditeur de blocs, je suis disponible dans la catégorie des widgets sous le doux nom de Formulaire de recherche. Une fois ajouté à la zone de rédaction, vous pourrez personnaliser mon alignement depuis la barre d'outils du bloc et mon titre depuis l'inspecteur du bloc. Comme mon nom l'indique, je vous permettrai de pouvoir intégrer un formulaire de recherche dans vos publications WordPress.

Mon rôle est surtout de démontrer comment les auteurs de blocs peuvent inscrire à leur tour leurs magnifiques créations sur cette source alternative de blocs et faire bénéficier leurs utilisateurs d'une installation et de mises à jour simplifiées.

Pour profiter des services de l'Entrepôt, il s'agit de créer un fichier block.json à la racine du dépôt public du bloc hébergé sur GitHub.com. L'inscription dans les blocs répertoriés de l'Entrepôt s'effectue grâce à une "Pull Request" spécifique. Pour en savoir plus je vous invite à prendre connaissance de cette documentation.

PS : j'ai été conçu en suivant le guide fournit par l'extension wp-js-plugin-starter.

English 🇬🇧

Hi!

I am a WordPress block registered into the Entrepôt !

Without the Entrepôt plugin (version 1.5.0 or up) : I am an orphan, so install the Entrepôt to find me into the available Block types of the "Block Types" menu of your WordPress dashboard ! You'll be able to install me, to activate me and to update me using a single click !

Screenshot

Inside the block editor, you can find me into the Widgets category of the block inserter. My name is Search Form. Once added into the content of the editor block, you can customize my alignment from the block's toolbar and my title from the block's inspector. It's in my name : I will allow you to add a search form within your WordPress posts.

My goal is mainly to show how block authors can register their blocks into this alternative source of blocks and please their users with an easy installation and easy updates.

To enjoy the Entrepôt features, you first need to write a block.json file at the root of your Block's public repository hosted on GitHub.com. Registering to the Entrepôt simply needs a specific Pull Request. For more information, read this documentation.

PS: I was built thanks to the step by step guide included into the wp-js-plugin-starter plugin.