-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Channels #40
Comments
Interesting idea. I need to stew on it. |
One advantage to this approach is that it avoids any overlap with Microformats in terms of defining a new "page" post type. I'm still thinking about this, but it is simpler to isolate changes to only the Micropub side. In the WordPress notes you have:
Are we sure this is how it would work? Couldn't categories still be their own thing, and channels via WordPress would (like Micro.blog) only include "Posts" and "Pages"? |
I should note: My website already supports this via the vendor-specific property |
Given that the current plugin merges wordpress categories and tags into the micropub "category" property, it may be better to have "channels" be only posts and pages like you described. Either way is fine with me, it's up to the WordPress folks really, and has no effect on the actual protocol here! |
Sounds good. I agree, this should be up to each server implementation. However, I think it could be confusing if some servers included categories in the channel list, and some didn't. It's fine as long as clients don't make assumptions that categories will be returned in the channel list. But I could see user features related to this. For example, maybe there's an option in Micro.blog to mark a category as being included in the client sidebar along with Posts and Pages channels, basically elevating the category to a higher prominence in the UI. |
To expand on the proposal, here are some request/response examples to make sure we're all talking about the same thing. Let me know if this looks right. This is from the Micro.blog perspective. Get the channel list
Create a new page (form-encoded)
Create a new page (JSON)
|
Why "Pages" as opposed to "Page" or "page" ? |
Suggest, per chat, channels have a uid and display name. |
That uid could actually be Pages. |
The names of the channels are entirely up to the server and don't need to be specified in Micropub. However I'd recommend matching the Microsub method of channels so that they can have identifiers separate from the display name. e.g.
Specifying the channel in the request would use the
|
How would the existing category property work with channels? What would you expect to happen if category was sent as a channel and a property? |
I see the note about this further up, but just curious about scenarios |
Not sure what you mean @dshanske, these are two completely separate organizational patterns and can exist together. |
I'm good with adding the |
@aaronpk Just thinking of where someone will be confused in future. |
If there are usually only a handful of |
I've reimplemented my support for pages to now use channels. I think my initial concerns that this would be confusing with categories (or that it would be an unnecessary extra abstraction) were unfounded. Works pretty well. |
Awesome! Yes I think including it in the initial |
Channels would map perfectly to the concept of "feeds" in Kittybox. I have a "feed" as an organizational unit of my posts, along with categories (which I internally call "tags" - they have feeds of their own too). The default channel would be the main feed - every single post (with some exceptions) will end up in the main feed, channels would be alternative feeds. Creating a channel would probably involve posting an (optionally empty) h-feed at a certain URL which will then be registered as a new channel. Alternatively, unknown channel UIDs can result in creation of new channels (TODO brainstorm UI in Kittybox Companion for this) or be rejected. Additionally (this bit isn't specific to Kittybox but may be applied to other implementations as well), a Micropub client could have settings to automatically preset channels for certain post types. |
Revisiting this post and this perfectly satisfies a lot of the stuff I wanted re: pages and introduces a new approach to handling content. I’ll see if I can implement this in Koype in the coming months. (Originally published at: https://v2.jacky.wtf/post/e6adaf2b-7e5d-458b-adf4-1b288d9f8d13) |
Throwing a small wrench into this, how should we consider creation of channels? I do want to be able to add and remove channels somehow from a Micropub client (this is also coming from me wanting to keep my Micropub server as headless as possible. |
Microsub can create channels, so it might make sense to borrow from that interface. As long as creation is optional… Micro.blog won't support creating new channels. |
I am planning to support creating new channels via posting an MF2 object of type "h-feed". It should at least have a name and preferably an |
This is an interesting approach. Using `h-feed` feels a bit weird but
_correct_ to me because channels are best represented as a feed from
Aaron's explanation and comparison above when it's not in the editing
context.
…On Sun, Jul 4, 2021 at 10:50 AM, Vika ***@***.***> wrote:
I am planning to support creating new channels via posting an MF2
object of type "h-feed". It should at least have a name and
preferably an mp-slug to generate a pretty URL (note: Kittybox never
generates pretty URLs automatically, this is currently intended
behavior). A UID will be generated automatically for internal
bookkeeping and it will be added to the channel list in the database.
On the next ?q=config request the new channel will appear in the
channel list with its name and UID.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have this working for my site's apps in a few ways:
I think that those designing their system should opt for their Micropub systems to have a default channel that |
For what it's worth, Micro.blog does use the uid "default" channel ("Posts") from |
Also, I don't support |
I currently ran into an issue with Quill (though undocumented in this regard) because my default channel body would provide its "expanded" form (with the
IIRC, this is what |
@jalcine I wonder if it would help if you pasted a couple example responses here? I just want to make sure I understand how you're supporting this… I might've been confused in my recent question. For Micro.blog, here's what my
|
Yeah! So my hope/goal is to allow for the creation of channels and also allow for querying for more information about them (a bit similar to how we do categories right now). The two cases I gave above are very specific to the content rendering content of my site but my hope is to have something like this for the creation of a channel:
which would return something like
This way, an editor can show this in its interface to allow for association (or if in the settings for an editor, you can specify which channel would cause a particular action, like pinning a post so it'd present it merely as a checkbox). For querying, we could do it similarly to how we do it for categories
Which now could also be used in things like |
I'm reviewing my implementation for channels and second-guessing it…. When creating a new page, should |
I've placed it within `properties` and treated it as an invisible storage property like 'destination' or 'syndication' that could adjusted.
…On Tue, Jan 2, 2024, at 09:03, Manton Reece wrote:
I'm reviewing my implementation for channels and second-guessing it….
When creating a new page, should `mp-channel` be at the root level of
the JSON (like `mp-syndicate-to` and `mp-destination`) or inside
`properties`? I feel like it's out of place inside properties because
it's not a normal property like `name`, `content`, etc.
--
Reply to this email directly or view it on GitHub:
#40 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--
In solidarity with workers everywhere,
Jacky Alciné - <https://jacky.wtf/about>
Learn about the rise of tech workers' organizing for safer, more equitable and healthy work environments in a "You Deserve a Tech Union", with stories from workers at Google, Kickstarter and Code for America! Get your copy at <https://abookapart.com/products/you-deserve-a-tech-union>.
|
Channels
This is a proposal to introduce a new organizational concept to Micropub for creating and editing posts: Channels.
Why not "categories"? "Tags" and "categories" have existed in practice for many years, but lately have converged to mean essentially the same thing, as will be made apparent below. Repurposing the term "category" for this would add confusion with existing systems.
Micropub Requests
channel
. Absence of this property would create the post in the "default" channel, whatever that means to the server.channel
, to choose which post list to return. Absence of this property would return the "default" list of posts, whatever that means to the server.If a server does not support this organizational pattern, no change is needed, since it would ignore this property in queries or requests.
This would resolve the discussion on Pages, since CMSs can define a special channel to collect these pages under.
Mapping to existing CMSs
WordPress
WordPress has three primary organizational structures: Pages, Categories and Tags.
WordPress can expose these organizations by using a combination of Micropub channels and categories. ("category" in Micropub is from the Microformats vocabulary, and is what most people would think of as "tags" on a post.)
(The current version of the Micropub plugin combines categories and tags into a single list. If a category in a micropub request matches an existing wordpress category or tag then it's used, but if it doesn't exist, a tag is created.)
Micro.blog
Micro.blog has two primary organizational structures: Pages and Categories.
Adopting Micropub "channel":
Kirby
TODO
Ghost
TODO
Usage in Custom CMSs
aaronparecki.com
My posts exist in three main organizational concepts: channels, tags, and pages.
/articles
,/likes
,/travel
. Note that even though the names of some of these might suggest certain post types, there is no requirement that only posts of a certain type are added to a particular channel.Adopting Micropub "category":
The text was updated successfully, but these errors were encountered: