The WGALINKS wizard was developed to enable WG coordinators to quickly create calendar links in an announcement, which will be communicated through the site notification system to users subscribed to the post.
It is activated by doing the following while editing a post:
- Enter the tag WGALINKS (contained in square brackets) into the text box
- Hit tab
- Fill out the wizard as instructed by the popups
If tab does not work, e.g. Safari browser, you can also click outside the composing window to trigger the wizard.
Once the wizard completes successfully, you may need to click out of the text box or enter another keystroke to have the preview pane update.
Provided this information is parsed as valid, it will create formatted HTML, links etc. with a place for you to enter further details (i.e. Agendas)
Once the post is saved, it will be placed into the site queue for notification. This could be anywhere 0-10mins so it is best to ensure the text is correct before saving so as to not rebroadcast the message to users.
Where is the code that controls this?
The code that controls the WGALINKS functionality is injected into the site HTML head tag via a theme component. This lives in Admin > Customise > Components > WGALINKS > EDIT CSS/HTML > HEAD
Direct Link: https://forum.access-hive.org.au/admin/customize/components/21/common/head_tag/edit
(You will require administrative rights to access/edit this section of the site).
The code is pure javascript with the exception of the moment.js library for date parsing.
Troubleshooting
The system should be fairly straightforward, however, certain browser settings may restrict some or all of the custom javascript that runs the link wizard.
The system outputs errors to the console - open your browser’s developer tools and navigate to console for further details.
Further issues, contact Ben S.