-
Notifications
You must be signed in to change notification settings - Fork 162
oEmbed for Pages #306
Comments
So, fixed URL for pages. My initial recommendation would be: But our existing formats for static page text and image assets are:
At first this appeared to be sheer lunacy. Then I realized it's probably to ensure the downloaded filename is sensible ( So do we:
My vote is for №2. |
Just two hours to pull a 180. I don't expect us to widely advertise page URLs, which makes consistency even more important. (The most common "page URL" will likely be the page anchor on the document page, ala So, changing my vote to №1. |
Yeah, okay so there's a lot to unpack here. We're caught between 3 or 4 different systems that are colliding.
Okay, so with that madness as context, we should do some unification and moving towards a consistent URL scheme where we can. My initial thought was that a document is already a collection/list for pages (and to use So instead i'd rather ask what can we lay out that 1) most closely resembles a system that we would design today which would feed a push state enabled viewer, and 2) allows us to continue to support applications and other tools that are pulling from existing urls & paths. |
Okay, so what are our possibilities?
|
I'm so happy that you're on board with unmaddening the madness, and agree with the direction of this conversation. There are several dimensions to consider, hopefully I won't make a mess of them. oEmbed discoveryWe all know this, but for posterity, here's how oEmbed works: an oEmbed consumer (e.g., WordPress) says "I have this URL (e.g.) and I need to know how to embed it; I'm going to fetch that URL and look for a Any resource we want to be oEmbeddable needs a URL that returns an HTML page with a resource-specific Canon and contextThere are two ways to present a document sub-resource (page/note):
№1 is required. If pushState lets us recompose the oEmbed Given that setup…
|
re point 2: That's not deceptive. You're asking for a link to a particular page/resource. If they were to scroll to another page, the pushState URL should update. The one weird part is that once you're down in a page view... how do you get back up to the collection view. And yes i think .html should be specified. |
(Gonna regurgitate our phone conversation here for posterity.) What we're talking about with @knowtheory and I really like this idea:
The viewer would be pushState-enabled. The sub-resource links open the document, lightboxed in the state of the specified sub-resource, ala how notes are now. (We're using "lightboxed" simply for conversation; please ignore term baggage.) Rails renders the page with the oEmbed link composed for the specific sub-resource requested; I say changes to the page state should dynamically update this oEmbed link tag, @knowtheory says that'll be wasted effort given how immaterial it is to actual oEmbed consumers. Punting on that decision until we're actually implementing pushState. |
yeah... so actually the way i'd frame this is that a resource is basically a request for some data by a user. We also happen to ship along with that data an app that lets the user view the data. So the fact that the document resource and the page resource use the same viewer is sort of incidental. But the type of resource that's being requested lets the app know what state we intend the user to see. |
The text was updated successfully, but these errors were encountered: