425: Proof of Concept for Blog List Remote Source Enhancement#12
Draft
kadamwhite wants to merge 79 commits intomainfrom
Draft
425: Proof of Concept for Blog List Remote Source Enhancement#12kadamwhite wants to merge 79 commits intomainfrom
kadamwhite wants to merge 79 commits intomainfrom
Conversation
This reverts commit 693d192.
In order to work with either remote OR local content, this needs to generate all data at this stage, before passing it to the template. This commit updates the blog-list render function to do this, but notably does NOT update the template part (that would come in a future commit).
This is part of a larger update that would modify these templates to assume all data to be passed to them as-is, allowing for incoming data from remote as well as local sources.
Update README.md
Collaborator
Author
|
Original comments:
|
kadamwhite
pushed a commit
that referenced
this pull request
Feb 3, 2023
Sound logo: #594 Accordion block
Collaborator
@kadamwhite - Is this ready for deployment or still at concept/development stage? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was originally created by @alwaysblank in the old repository. Original PR description appears below.
This branch represents a Proof of Concept experiment as part of my research into #425.
It is meant to prove the feasibility of enhancing the Blog List block to pull data from remote WordPress sites via the REST API. My conclusion is that this is possible, with the following caveats.
Caveats / Limitations
RSS
This implementation doesn't attempt to import items from RSS, but an RSS implementation would be conceptually similar, though probably a little more "static." If an RSS-based solution was desired, I'd advise building a separate block for RSS feeds rather than using the Blog List block. Certain elements of the Blog List (i.e. Author or Category-based filtering) would not work well in an RSS context.
Although RSS would theoretically allow us much more latitude in terms of CMS backing we could support, only the RSS spec is defined--not the data it might deliver. We would likely still need to develop specific "adapters" for each site we wanted to support--feasible if a small number of sites, but time-consuming if we want to support a large range of divergent sites. Using the WP REST API, on the other hand, allows us to quickly and easily connect to just about any modern or semi-modern WordPress site.
Conclusion
I think that this approach (enhancing the Blog List block to support remote data sources) is a reasonably robust one, and potentially very useful as it could enable syndication of content from a vast range of sites--so long as they are WordPress sites. If the ultimate goal is to be able to syndicate content from sites regardless of CMS, then the RSS approach would be more reasonable, but require dropping other features, i.e. filter by category. These two approaches could co-exist, though: There's no reason not to have the Blog List block and an RSS Feed block, if necessary.