Comments (3)
Make the block dynamic using Server Side Rendering rather than generating the [github] shortcode
I made the change, or so I thought, but got 404's from the render request.
Problem determination
- Check you've added the dynamic server function
$args = [ 'render_callback' => 'oik_bob_bing_wide_dynamic_block_github'];
- Check the block name being requested is the same
oik-bbw/github
- Implement some tracing to see what's happening. Why's it working for
oik-bbw/csv
- Revisit step 1.
$args = [ 'render_callback' => 'oik_bob_bing_wide_dynamic_block_github'];
$registered = register_block_type_from_metadata( __DIR__ .'/src/github' );
- It would be a good idea to pass
$args
to the block registration wouldn't it.
Say $args out loud, with a silent s.
from oik-bob-bing-wide.
Attempt to support deprecation.
I think I did it this time.
Remove the redundant, hardcoded header
The redundant header is still needed for the deprecated version though.
Make the block dynamic using JavaScript in the editor and Server Side Rendering in the backend.
We can now:
- remove the redundant
shortcode
attribute. - improve the block's description
- remove the extra single quotes on the block's description.
- improve the block's description
- remove unnecessary CSS
from oik-bob-bing-wide.
Delivered in v2.2.1.
from oik-bob-bing-wide.
Related Issues (20)
- Implement shortcode transforms to blocks
- CSV block server side rendering produces Error loading block. Invalid parameter(s): attributes HOT 2
- Update for compatibility with PHP 7.4
- Warning: number_format() expects parameter 1 to be float, string given HOT 1
- Update npm build for blocks to latest versions of node, npm etc. HOT 1
- bw_post and bw_page shortcodes no longer working HOT 1
- Add [guts] logic into the oik-bbw/wp block HOT 1
- Improve support for loading the CSV file from an attachment or file using the src attribute HOT 2
- Recover from a stupid plugin update HOT 1
- Update blocks to build using wp-scripts and register with block.json - starting with oik-bw/wp HOT 13
- Add a simple example for the CSV block HOT 1
- Add a simple example for the Search block HOT 1
- Rework the WordPress info block then internationalize HOT 6
- Refactor bw_dash and bw_github to use the shared library for class OIK_SVG_icons HOT 11
- oik-bbw/csv block can get HTML error code 414 for too much data
- Re-enable RangeControl slider for dashicon's Icon size setting
- Support PHP 8.1, PHP 8.2 and PHP 8.3 HOT 2
- bw_get_notes_page_url() refers to an URL that no longer exists
- Fatal error responding to 'oik_add_shortcodes' HOT 1
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 oik-bob-bing-wide.