Coder Social home page Coder Social logo

frontity / frontity-slot-block Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 764 KB

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

Home Page: https://frontity.org

PHP 29.91% CSS 6.11% JavaScript 57.99% SCSS 5.99%
frontity gutenberg slot

frontity-slot-block's Introduction

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.