Comments (8)
So, create block which renders shortcode content in editor, and then renders same content on the front end? Any other specifics I need to know?
from simple-user-listing.
Hi Jonathan! At it's most basic... yes that's exactly what I want. At it's most complex I'd like to support all the parameters that are supported by the shortcode... and some display controls (like columns, hide/show avatars, etc). I started mocking some stuff up here: https://www.figma.com/file/H5U237OsRZ5XPY4LBxSiO6/SUL-block?node-id=0%3A1
I certainly don't expect you to do all that.. just logging it for my own reference and to give you an idea of where I want to go someday. Even a starter block with almost no options would be pretty cool and a step forward for this plugin.
from simple-user-listing.
Got it. I might start with just the starter block, and then expand on that with options in a different PR.
from simple-user-listing.
You can follow progress over here. https://github.com/jonathanbossenger/Simple-User-Listing/tree/feature/10-gutenberg-block
Once it's in a testable state, I'll create a PR
from simple-user-listing.
@helgatheviking I've reached a point in development where I would like to be able to get some feedback from you, to determine the way forward. What will work better for you?
a) I create a PR from my fork/branch into a development branch on this repo, which you can then switch to to test locally
b) You clone my forked repo/branch, in order to test locally
from simple-user-listing.
Hi @jonathanbossenger this is so cool! I appreciate your work here. gotta admit that i'm a little underwater so might be a minute before I can look at what you've got. How about you send a PR? and I will look at it when I can (or when I am procrastinating this WooSesh talk)
from simple-user-listing.
@helgatheviking I created the PR. It's very basic at the moment, it just renders the block in the block editor, and renders the shortcode content on the front end.
It uses Gutenberg's dynamic block functionality, so the block is registered with a PHP callback (which in this case is just the shortcode callback) This means as you update the shortcode functionality, the block will use the same functionality on the front end.
The block itself has no settings, my next step is to add the short code attributes as controls on the block, to allow the same level of control.
If you want to test this out on your local environment, you'll need to checkout and fetch my branch, and then, making sure npm is installed, run npm install
and npm run build
to install the dependencies and create the build assets.
Hit me up if you have any questions, or get stuck.
from simple-user-listing.
Related Issues (13)
- Decoded arrows
- Navigation stopped working HOT 14
- Search from paged page should reset to first page
- Switch to _n for translation
- Block Design Discussion HOT 4
- Remove the Search Input code no longer works HOT 3
- Change donation link back to me
- About user search function HOT 1
- FQDN in Picture-Path HOT 1
- Search on fields other than name HOT 1
- How to list admin approved users HOT 1
- Adjusting the number of users displayed per page HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-user-listing.