Links and self references #256
Replies: 1 comment 2 replies
-
Hey @h34lthbybr33 , Thanks for the suggestion. This would be a cool feature, but I think somewhat complex to achieve. I like the idea of suggesting documents when creating links. I'm just wondering where we would pull that info from. I think we will add this feature at some point and I'm happy to add it to the roadmap/backlog, but this one would require some investigation. It would be great if you could think about how we can implement this and what the UX would look like. I'm open to suggestions! |
Beta Was this translation helpful? Give feedback.
-
Searched a bit and didn't find it, but is there a way link refinement can be put on the roadmap? To explain what I mean:
This content is usually driving another facet of the site (either a static site builder, website, etc.) Each of those should have a "home" on the finished site. It would be nice if, through a metadata component, you could assign how each collection manifests/is published, then back-reference that when creating links in documents.
For example, if you have a "Posts" collection, and a document with "hello-world" slug, it would be nice (if at the collection level) you could define the final URL as
/blog/${slug}
, then within a document when you're inserting a link, you can either provide an absolute link, or point to an item from a collection (then it builds it replacing necessary tokens).This doesn't have to get so intricate where you maintain a links database and update every document using that reference should it change (though that'd be nice as well), but would make it easy to reference pre-existing content. (Side note, that same links database could also be expanded/exposed for "related posts, in this example).
Hope that makes sense, but LMK if I need to give a better explain/more concise definition.
Beta Was this translation helpful? Give feedback.
All reactions