Skip to content

Adding Links

llui85 edited this page Nov 18, 2019 · 2 revisions

Adding Links

As links are defined in multiple files, it is important to follow these instructions when adding links.

  1. Open links.json and add a comma after the last curly-brace (},)
{
	"id": "",
	"text": "",
	"url": "",
	"issmart": false,
	"hasimage": true,
	"script": "",
	"imagepath": "/images/",
	"imagewidth": 30,
	"imageheight": 30
},
  1. Copy the above JSON code and paste on a new line between }, and ]

  2. 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 if issmart is true
  • issmart - Controls whether the button appears in the Smart Buttons section. If it is true then 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 is false then the three image paths are optional
  • script - The script which will be executed when the button is clicked. Optional if issmart is false
  • imagepath - Where the image is stored. This should be in the images directory. Optional if hasimage is false
  • imagewidth - What the image width is. Should be around 30 for correct sizing. Optional if hasimage is false
  • imageheight - What the image height is. Should be around 30 for correct sizing. Optional if hasimage is false
  1. You should now have your link showing up in the list!

Clone this wiki locally