Recent searches

in

What are Editor Links?

Last modified: October 9th, 2026

On this page

Editor Links are ordinary <a> elements whose href uses the cloudcannon: scheme. In the Visual Editor, CloudCannon intercepts a click on one and opens the destination it names instead of navigating your Site. Outside the Visual Editor, the browser treats the scheme as unknown and the link does nothing, so Editor Links left in your built output are inert.

Use them to put an edit button next to each item in a list, or to send a Organization Member straight to the field behind a piece of content.

Editor Links use the CloudCannon link protocol. For the full syntax, please read our documentation on what the CloudCannon link protocol is.

Linking to a field in the current file#

Prefix the slug with cloudcannon:# to open the field behind a value in the file you are previewing. Name each step from the root of your data, separating objects and properties with a dot, and denoting array items with a zero-based index in square brackets.

HTML
Copied to clipboard
<a href="cloudcannon:#title">Edit the title</a> 

<a href="cloudcannon:#array[1]">Edit the second array item</a> 

<a href="cloudcannon:#object.title">Edit a value inside an object</a>

<a href="cloudcannon:#object.array[0].title">Edit the title of the first item in an object's array</a>

Opens a Data Panel over the page, positioned near the link you clicked.

Indexes start at 0, so [1] is the second item.

A screenshot of the Visual Editor shows an Edit the heading link on the previewed page, with a Data Panel open beside it displaying the Heading field and its value.

Editor Links open an existing field. To give an Organization Member a control that adds a new array item, use a Visual Data Binding ending in [+] instead. For more information, please read our documentation on what Visual Data Bindings are.

Opening in the sidebar

By default, an Editor Link opens a Data Panel floating over the page. Add the data-cms-editor-link-style attribute with a value of sidebar to open the field in the sidebar instead. The sidebar replaces its list of fields with the one the link names, and a Back link returns to the list.

HTML
Copied to clipboard
<a href="cloudcannon:#title" data-cms-editor-link-style="sidebar">Edit the title</a>
A screenshot of the Visual Editor shows the sidebar opened on the Contact Email field with a Back link above it, beside the previewed page carrying the link that opened it.

Linking to other parts of CloudCannon#

Drop the # and name a path to open somewhere else in CloudCannon. CloudCannon resolves the path against your Site, so dashboard opens its Site Dashboard.

To open a Collection or a file inside one, write collections/ followed by the path that Collection reads from in your repository. CloudCannon matches that path against your Collection configuration and opens the Collection it belongs to. Use the path, not the Collection key that appears in the app's own URL — a key CloudCannon cannot match as a path opens the Collection Browser instead.

HTML
Copied to clipboard
<a href="cloudcannon:collections/staff">Open the staff Collection</a>

<a href="cloudcannon:collections/staff/jane-doe.md">Open a file in the staff Collection</a>

<a href="cloudcannon:dashboard">Open the Site Dashboard</a>

Putting an Editor Link inside a loop gives every item its own edit button. In Hugo:

HTML
Copied to clipboard
<ul class="blog-posts">
  {{ range .Pages }}
    <li class="blog-post">
      <h3>{{ .Title }}</h3>
      <a href="cloudcannon:collections/content/{{ .File.Path }}" class="editor-link">Edit post</a> 
      <p>{{ .Summary }}</p>
      <a href="{{ .RelPermalink }}">Read more</a>
    </li>
  {{ end }}
</ul>

The path has no leading slash, which is the form CloudCannon resolves against your Site.

Related Resources

Open in a new tab