Skip to content

A block to insert Frontity Slots directly in the block editor.

Notifications You must be signed in to change notification settings

frontity/frontity-slot-block

Repository files navigation

Frontity Slot Block

Insert a Frontity Slot in the block editor (aka Gutenberg).

Description

This plugin adds a new block to the block editor called Frontity Slot, that inserts a Frontity Slot directly in the content.

Frontity Slot Block

It requires the Slot Block processor, which is exported in the @frontity/html2react package:

import slotBlock from "@frontity/html2react/processors/slot-block";

export default {
  state: {
    // ...
  },
  actions: {
    // ...
  },
  libraries: {
    html2react: {
      processors: [slotBlock],
    },
  },
};

Demo

Frontity Slot Block Demo

Feature Discussion

This Frontity feature is discussed at https://community.frontity.org/t/frontity-slot-block/4534. Feel free to join and participate.

Installation

  1. Upload the plugin files to the /wp-content/plugins/frontity-slot directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

Frequently Asked Questions

What is the benefit of using this block instead of just an html2react processor?

Both approaches work, but using Frontity Slots is more explicit, clean, and should be easier to maintain.

Frontity Channels 🌎

There are different channels at your disposal where you can find information about the Frontity project, discuss it and get involved:

  • 📖 Docs: this is the place to learn how to build amazing sites with Frontity.
  • 👨‍👩‍👧‍👦 Community: use our forum to ask any questions, give feedback and meet great people. This is your place too to share what are you building with Frontity!
  • 🐞 GitHub: we use GitHub only for bugs and pull requests. Questions are answered in the community forum!
  • 🗣 Social media: a more informal place to interact with Frontity users, reach out to us on Twitter.
  • 💌 Newsletter: do you want to receive the latest framework updates and news? Subscribe here.

» Get involved 🤗

Got questions or feedback about Frontity? Use the community forum yo ! ❤️

The Frontity project also welcomes contributions. There are many ways to support the project! If you don't know where to start, this guide might help: How to contribute?

About

A block to insert Frontity Slots directly in the block editor.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published