-
Notifications
You must be signed in to change notification settings - Fork 0
Adding Links
llui85 edited this page Nov 18, 2019
·
2 revisions
As links are defined in multiple files, it is important to follow these instructions when adding links.
- Open
links.jsonand add a comma after the last curly-brace (},)
{
"id": "",
"text": "",
"url": "",
"issmart": false,
"hasimage": true,
"script": "",
"imagepath": "/images/",
"imagewidth": 30,
"imageheight": 30
},-
Copy the above
JSONcode and paste on a new line between }, and ] -
Fill in the code properties:
-
id- ID of the button. This should be a short string in all lowercase -
text- The text that appears on the button -
url- The URL which the button will open when clicked - Optional ifissmartistrue -
issmart- Controls whether the button appears in the Smart Buttons section. If it istruethen the URL property will be ignored and the script property used instead for the click action -
hasimage- Controls whether the button shows an image. If this isfalsethen the three image paths are optional -
script- The script which will be executed when the button is clicked. Optional ifissmartisfalse -
imagepath- Where the image is stored. This should be in the images directory. Optional ifhasimageisfalse -
imagewidth- What the image width is. Should be around 30 for correct sizing. Optional ifhasimageisfalse -
imageheight- What the image height is. Should be around 30 for correct sizing. Optional ifhasimageisfalse
- You should now have your link showing up in the list!