Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frontity/frontity-slot-block
A block to insert Frontity Slots directly in the block editor.
https://github.com/frontity/frontity-slot-block
frontity gutenberg slot
Last synced: 11 days ago
JSON representation
A block to insert Frontity Slots directly in the block editor.
- Host: GitHub
- URL: https://github.com/frontity/frontity-slot-block
- Owner: frontity
- Created: 2021-05-06T14:29:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-11T13:58:06.000Z (over 3 years ago)
- Last Synced: 2024-11-05T21:48:22.286Z (about 2 months ago)
- Topics: frontity, gutenberg, slot
- Language: JavaScript
- Homepage: https://frontity.org
- Size: 746 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](assets/screenshot-1.png)
It requires the _Slot Block_ processor, which is exported in the `@frontity/html2react` package:
```js
import slotBlock from "@frontity/html2react/processors/slot-block";export default {
state: {
// ...
},
actions: {
// ...
},
libraries: {
html2react: {
processors: [slotBlock],
},
},
};
```## Demo
[![Frontity Slot Block Demo](assets/loom-demo.png)](https://www.loom.com/share/d0a0d91e6f5c47b08a2d3da3eaf32629)
## 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.
1. 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](https://docs.frontity.org)**: this is the place to learn how to build amazing sites with Frontity.
- ๐จโ๐ฉโ๐งโ๐ฆ **[Community](https://community.frontity.org/)**: use our forum to [ask any questions](https://community.frontity.org/c/dev-talk-questions), give feedback and meet great people. This is your place too to share [what are you building with Frontity](https://community.frontity.org/c/community/showcases/19)!
- ๐ **[GitHub](https://github.com/frontity)**: we use GitHub only for bugs and pull requests. Questions are answered in the [community forum](https://community.frontity.org/)!
- ๐ฃ **Social media**: a more informal place to interact with Frontity users, reach out to us on [Twitter](https://twitter.com/frontity).
- ๐ **Newsletter**: do you want to receive the latest framework updates and news? Subscribe [here](https://frontity.org/).### ยป Get involved ๐ค
Got questions or feedback about Frontity? Use the [community forum](https://community.frontity.org) 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?](https://docs.frontity.org/contributing/how-to-contribute)