Extra Placeholders addon add functionality to Confluence 'instructional text' by providing Date, Page and Autocomplete options.
When your template contains Date instructional text field it will present a date picker when activated. Just select the field and start typing:
When your template contains Page instructional text field it will present a page selector when activated. Again, select the field and start typing the title of the page you want to select:
Autocomplete instructional text can provide arbitrary reference data. When addon is first installed it contains sample data:
Confluence administrators can define there own reference data using addon configuration page.
In its simplest form the data is just a list of strings:
'Confluence Pages' datasource is similar to 'Page' instructional text described above, and is used here as a demo. It's full definition is as follows:
The code is mostly self-explanatory: getUrl function returns RESTful service endpoint; getParams provides parameters for a call; update converts results to HTML and appends it to the editor.