Skip to content

Commit d986636

Browse files
authored
Merge pull request #2 from flotiq/feature/update-readme
add plugin information to the readme and update description
2 parents 95a9414 + 02dda64 commit d986636

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.docs/images/custom_link_plugin.png

141 KB
Loading

.docs/images/custom_link_settings.png

125 KB
Loading

README.md

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1-
[[_TOC_]]
1+
# About plugin
22

3-
# Custom Links Plugin
3+
This plugin will display a button with a link in the content edit object. The link will be supplemented with data from the currently edited object. Thanks to this link, you will be able to easily access the preview of where the content will be used.
4+
5+
## Plugin outcome
6+
7+
In the sidebar of the Content Object form, you will see a panel with the configured link button. The button will not be visible when adding a new object.
8+
9+
<img src=".docs/images/custom_link_plugin.png" alt="plugin-item" width="1000"/>
10+
11+
## Configuring plugin
12+
13+
To manage a plugin, you must first add it to your plugins. Click the "+" icon to add the plugin to your library and click the "Manage" button. It will open the plugin settings.
14+
15+
<img src=".docs/images/custom_link_settings.png" alt="plugin-settings" width="700"/>
16+
17+
Field descriptions:
18+
19+
* `URL Template` - It's a place to enter the link template, e.g. https://my-blog/post/{slug}, where `slug` is the name of the content field of the type selected below. Instead of `{slug}`, you can use any field of a given content type, it is also possible to use nesting, e.g. `{internal.createdAt}`. You can also use list fields: `{addresses[0].city}`.
20+
* `Displayed Name Template` - Any name that will be displayed on the link button. You can also use content object fields (e.g. `{slug}`), in the same way as with Url Template.
21+
* `Content Type Definition` - Select the content type to display the button only for the specified content type. If the content type is not selected, the button will be shown when editing each content object.
22+
23+
# Development
424

525
## Quick start
626

plugin-manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"id": "flotiq.custom-links",
33
"name": "Custom Links",
4-
"version": "1.0.0",
5-
"description": "This plugin allows to create custom links in each entity view.",
4+
"version": "1.0.1",
5+
"description": "This plugin will display a button with a link in the edit content object. The link will be supplemented with data from the currently edited object. Thanks to this link, you will be able to get easy access to the preview of where the content is used.",
66
"repository": "https://github.com/flotiq/flotiq-ui-plugins-custom-links",
77
"url": "https://localhost:3053/index.js",
88
"permissions": [

0 commit comments

Comments
 (0)