#wordpress 2019-10-17

2019-10-17 UTC
#
[grantcodes]
I think it needs to be done the opposite way around though.
#
[grantcodes]
1. Would be define the blocks and their attributes (which is basically based off of mf2 properties & values)
#
[grantcodes]
2. Set the save method of each block (basically the html they output - this is where you'd output mf2
#
[grantcodes]
3. Would probably want to make all blocks editable
#
[grantcodes]
4. Figure out restrictions for what blocks / properties prevent the use of others
#
[grantcodes]
(if that's even possible)
#
GWG
Any good block resources to learn?
#
[grantcodes]
Then after that I would prioritize trying to get micropub to work with block storage.
#
[grantcodes]
There's the wporg Gutenberg handbook. It's annoying if you're actually searching specific stuff but the tutorials are probably good
#
GWG
I think I may need something for people who don't use JS
#
[grantcodes]
They've also been quite good at making more and more of it controllable by php
#
GWG
[grantcodes]: I wish you could write a block in it
#
[grantcodes]
But the UI is obviously js and there's no way around that
#
[grantcodes]
You can write PHP blocks. They just don't have a nice editor experience
#
[grantcodes]
You can also use stuff like acf or carbon fields to do it all in PHP, but they end up working a bit differently and are better for custom sites, not generic plugins. But maybe a good way to start understanding them from the php side
#
GWG
I wouldn't use ACF or Carbon. I would want direct coding
#
GWG
But I may have to do a lot of work to figure out how I want to implement
#
[grantcodes]
Yeah I just mean they might provide an easier onboarding point for learning
#
GWG
Maybe I'll pick something up at WCUS
#
[jgmac1106]
yeah I built a similar block when I was messing about with student blogs, but that was me manually in a post,
[tantek], [dmitshur], [snarfed], [dougbeal], almostdvs, [jeremycherfas], [fluffy], [Rose], [grantcodes], [Lewis_Cowles], [KevinMarks], gRegorLove, [calumryan], kingpapa, kingpapa_ and [jgmac1106] joined the channel
#
beko[m]
What's the best strategy for mention someone in a blog post for ActivityPub? Adding links manually? That's not automatically handled like in the Mastodon webclient.
mojisun, kingpapa, [KevinMarks], kingpapa_, [frank], [Rose], [aaronpk], jeremych_ and [tonz] joined the channel
#
[tonz]
@beko[m] If I want to mention someone for AP I use the excerpt field for it.
#
beko[m]
how comes?
#
[tonz]
I normally don't want masto links or twitter mentions in my posting, as I use hrefs there, so if I want to mention someone I send the excerpt to M or T instead and have it there. M and T handle that on their own side.
#
@ton_zylstra
Do you know @valdiskrebs @marc_smith of examples mapping networks of scientists as a means of discovery? E.g. if you wanted to explore the current developments in a field of science you're not a part of yourself? (https://www.zylstra.org/blog/2019/10/9957/)
(twitter.com/_/status/1184436388843929600)
[mapkyca] joined the channel
#
beko[m]
I see. Good idea. ActivityPub plugin can be set to Excerpt as well. Hm.. I've to test this
[calumryan], [schmarty], [tantek], akierig, akierig_, IWSlackGateway, [aaronpk], [Zegnat], dougbeal|mb1, [Lewis_Cowles], [Rose], [xavierroy], gRegorLove, Oclair, [snarfed], [jgmac1106], [grantcodes], [dougbeal] and RobotLordimperia joined the channel
#
GWG
Been working on emails for webmentions
#
GWG
Trying to make it less aggressive
Oclair_, akierig_, llllllDiscord[m], akierig, [grantcodes], [Lewis_Cowles], Oclair, [snarfed] and [dougbeal] joined the channel; JamesLefrereDisc left the channel