25 Jan 2016
Editor Links are a new CloudCannon feature to add in-app navigation around the editing interface. Use them to create edit buttons on blog posts and collections items in the editor for your clients.
The links are anchor tags with an
href attribute specific to CloudCannon.
href is prefixed with cloudcannon, followed by a colon and the URL you wish to link to.
For example, the following links to the Posts page for your clients:
This link navigates to https://app.cloudcannon.com/editor#/site/123/collections/_posts, the interface for managing blog posts.
Generating Editor Links
Jekyll generates the paths you need in a number of situations. Adding an edit button to each blog post in a list is as easy as:
This could generate https://app.cloudcannon.com/editor#/site/123/collections/_posts/2016-01-16-my-blog-post.md, navigating to the editor for that blog post.
Our documentation includes instructions for Editor Links on collection items and hiding them in the live site.
One of our customers requested this feature to create buttons to edit products from the Visual Editor. We’d love to hear how you use it in the comments below.