Working with a specific static site generator? Customize CloudCannon's documentation to suit your SSG.
Great! We'll show you documentation relevant to . You can change this any time using the dropdown in the navigation bar.
Editor Links allow you to link to other sections of the CloudCannon interface from within the Visual Editor. Use them to create edit buttons for your collection items and blog posts to quickly navigate the app. You can also add front matter Editor Links to open the front matter Editor at specified fields.
Create a link to open a data editor at a specific input:
index.html
copied
<!-- Inputs --><ahref="cloudcannon:#title">
Edit the title
</a><!-- Arrays --><ahref="cloudcannon:#array[1]">
Edit the first array item
</a><ahref="cloudcannon:#array[+]">
Create a new item in an array
</a><!-- Inputs within an Object --><ahref="cloudcannon:#object.title">
Edit a variable within an object
</a><ahref="cloudcannon:#object.array">
Edit an array within an object
</a><!-- Inputs within an Array inside an Object --><ahref="cloudcannon:#object.array[0].title">
Edit the title of the first array item within an object
</a>
You can edit hidden inputs by using popout-style editor links.
Front matter can be highlighted within the data editor in the sidebar, or displayed standalone in a panel (default). To change open an editor link in the sidebar:
Add the data-cms-bind-style attribute
Set the attribute’s value to sidebar (optional)
index.html
copied
<ahref="cloudcannon:#title"data-cms-bind-style="sidebar">
Edit the title
</a>
To have edit links for posts in a list, add an Editor Link in the blog post loop:
index.html
copied
<ahref="cloudcannon:collections/staff">
Edit all staff
</a><ahref="cloudcannon:collections/staff/jane-doe.md">
Edit Jane Doe
</a><ahref="cloudcannon:collections/posts/welcome-post.md">
Edit Welcome Post
</a><ahref="cloudcannon:status">
Link to Site Status and Recent Activity
</a>
Front matter Editor Links are prefixed with cloudcannon:# and use a common syntax to reference them, for example:
index.html
copied
<!-- Inputs --><ahref="cloudcannon:#title">
Edit the title
</a><!-- Arrays --><ahref="cloudcannon:#array[1]">
Edit the first array item
</a><ahref="cloudcannon:#array[+]">
Create a new item in an array
</a><!-- Inputs within an Object --><ahref="cloudcannon:#object.title">
Edit a variable within an object
</a><ahref="cloudcannon:#object.array">
Edit an array within an object
</a><!-- Inputs within an Array inside an Object --><ahref="cloudcannon:#object.array[0].title">
Edit the title of the first array item within an object
</a>