A plugin for automatically generating link buttons in the sidebar. Intended for preview links but flexible enough to do other stuff too!
Setup
Install the plugin
On your DatoCMS dashboard, go to Settings > Plugins and hit the "+" button to add a new plugin.
Search for "Sidebar Link Buttons" and hit "Install"
Add the buttons
Go to the settings for a model you want to display the link buttons alongside.
Add a new field of type: "JSON"
Give the field a name, such as "View Content". This name will be shown as the title of the sidebar section.
In the "Presentation" tab, select "Sidebar Link Buttons" from the "Field Editor" dowpdown, then hit "Save Field".
Create a new instance or edit an existing instance of the model you just saved.
Expand the sidebar and you should see the link buttons.
Point the buttons to the correct URLs
Go back to the settings for the model you updated in the last step.
In the "Presentation" tab, select the "Buttons" field, edit the link for each button you want be displayed, then hit "Save Field".
You can substitute any of the numeric or single-line text fields on the entity, including ${id} and ${slug}, or any of the global properties (explained later) using the syntax ${property_name}.