Тёмный

Using Core Data and Sharing Context across WordPress Blocks 

Brian Coords - WP Dev
Подписаться 2,5 тыс.
Просмотров 1,4 тыс.
50% 1

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@sili5208
@sili5208 7 месяцев назад
You are really good at explaining things in a compact way. Even if I already know the topics you're talking about, I still watch the video because I'm curious to see how you explain it. I relay like your Videos. For the slider, I would be interested to see how you would approach it if the slider is also to be displayed as a slider in the editor. I think that could be tricky.
@BrianCoords
@BrianCoords 7 месяцев назад
That's a great idea - I've had a few ideas to expand on it (custom settings to control the carousel) but I think that's a critical one - display it as a slider in the editor.
@elpuas
@elpuas 3 месяца назад
Great Video, Thanks for sharing!
@bluetheredpanda
@bluetheredpanda 7 месяцев назад
Okay so this is probably going to sound like flattery, but I just wanted to say I'm very appreciative and grateful of you not only for sharing this knowledge in a way that makes me feel like learning (for context I'm initially a designer by trade, not a developer, so HTML and CSS = within my reach, JS = sort-of-if-I-really-apply-myself-and-dedicate-time, but React + PHP = 🤯🤯), but also for your overall stance regarding WordPress. I just saw a few tweets of yours regarding FSE and the need for a better UX, and was like “Yes! thank you!” Super subjective of course, but I get the feeling you're one of the too rare developers who have both an advanced level of technical knowledge *as well as* a sense of what the experience can resemble for a normal user (and how difficult it currently is). So having someone in this rather unique position create those videos feels like a godsend. I really need to find a way to carve the time to watch your other videos on the topic and learn more. Thank you, thank you, thank you.
@BrianCoords
@BrianCoords 7 месяцев назад
To be fair, I've been talking to a lot of other people and those tweets are also based on those conversations. It's a communal feeling that FSE is important, but has lost sight of what it feels like to be a real user managing a real website. Hopefully we'll be able to give constructive feedback and they can get that user experience nailed down before we all get too frustrated with it! Thanks for watching and being part of the conversation!
@Rbog17
@Rbog17 7 месяцев назад
My man Brian out here doing God's work. Thank you so much for taking the time to dive into some of this complex development practices and teaching those willing to embrace blocks.
@seiuwatches
@seiuwatches 7 месяцев назад
Thanks for the tutorial! Although I'm currently avoiding static blocks like the plague, I'm not a fan on how block deprecaton is handled.
@BrianCoords
@BrianCoords 7 месяцев назад
Yeah you're not wrong. I only really use static blocks in this specific instance, where the block is 100% innerblocks inside.
@mahmodissa4169
@mahmodissa4169 7 месяцев назад
Hey such a great work! I've seen nothing explained as you explain on those videos! Can you send me the link doing this Slider? Thanks
@BrianCoords
@BrianCoords 7 месяцев назад
Yep. All the code is available right here: github.com/bacoords/wcphx-2024/tree/add-context-example
@BK-qx3qf
@BK-qx3qf 7 месяцев назад
Serious question: Why would anyone ever build Gutenberg Block in react, unless they are developing their own blocks such as Stackable or Kadance or similar?
@BrianCoords
@BrianCoords 7 месяцев назад
In WordPress you often have the choice between making someone else's solution conform to your specs OR just writing it yourself. It's a trade off and a choice every time.
@BK-qx3qf
@BK-qx3qf 7 месяцев назад
@@BrianCoords You are correct, but from website development, which 95% of Wordpress development is, there is no worth in creating your own custom gutenberg block, no matter the circumstances. If you are creating library or block that will be usable by many (such as block libraries), that is another story. But developing your own block, because you cannot use already existing solution, is never go-to. I am afraid you are showing this to future dev kids, that will waste months to learn this, just to realize its imposible to utilize it in practice. Just my honest 2 cents.
@BrianCoords
@BrianCoords 7 месяцев назад
My hope is that the need for custom blocks grows less and less but if there’s anything that I’ve learned about WordPress it’s that the use cases are extremely varied and no one of us really has a complete picture of how it’s being used across the internet.
@BK-qx3qf
@BK-qx3qf 7 месяцев назад
@@BrianCoords You are completely right, but at this point, I believe just narrative that developers should "learn to build their own blocks, learn react, learn complex WP / React / PHP infrastructure, learn WP React (its not same as just react) in order to build custom carousel that has optional kitty svg showing in corner" is wrong approach. That's all I am refering to :) But regardless, great content, I also learn something new, I just believe developers without experience are watching this for wrong reason, and therefor will hit their head in wall soon enough.
@BrianCoords
@BrianCoords 7 месяцев назад
I agree with that. I've been thinking of doing some 'you don't need a custom block for this' type videos showing how often you can actually accomplish stuff with core if you know how.
@PhilaUAdam
@PhilaUAdam 7 месяцев назад
Awesome! I was just looking into using "context" for inner blocks.
@BrianCoords
@BrianCoords 7 месяцев назад
The usage is little weird to wrap your head around but super powerful.
@mamunurislam6373
@mamunurislam6373 7 месяцев назад
thanks
@markokrstic7787
@markokrstic7787 7 месяцев назад
Nice one