WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.53k stars 4.21k forks source link

[Block Library - Post Terms]: Add dynamic variations of feeds #65351

Open carstingaxion opened 2 months ago

carstingaxion commented 2 months ago

What problem does this address?

I did not find a blocky way to get a list of all feeds a reader may want to subscribe to, for a given post. I was looking for a block equivalent to get_term_link().

Once again: for GatherPress, I created a block variation of the post-terms block that seemed so simple and general, that I thought it might be better to ask, if we don’t want to support that from core.

What is your proposed solution?

I’d like to take https://github.com/WordPress/gutenberg/pull/39837 one step further and register another set of core/post-terms variations which will be populated with the feed urls of the selected terms.

While the block should use ‚rss‘ as its default feed type, a radio control could be pre-populated with the registered feed types to let an editor choose from.

In my GatherPress use-case, I wanted to use such a block to show the subscribe-able iCal endpoints.

Bildschirmfoto vom 2024-09-14 23-29-23

Because I did this already for GatherPress, I can easily share some code or even create a PR.

carstingaxion commented 2 months ago

Friendly ping asking for your opinions: @paaljoachim, @ntsekouras and @jeherve

paaljoachim commented 1 month ago

I went ahead and posted in the PR: https://github.com/WordPress/gutenberg/pull/39837 So that people there would get information about this issue.

carstingaxion commented 1 month ago

Cool, thank you @paaljoachim !