Bundled Plugins¶
Traq ships with four plugins. Markdown is enabled on a fresh install; the other three are optional.
| Plugin | What it does |
|---|---|
| Markdown | Formats ticket text, comments, wiki pages and descriptions as Markdown |
| Custom Tabs | Adds your own links to the navigation bar |
| reCAPTCHA | Adds a Google reCAPTCHA check to registration |
| Security Questions | Adds a question the new user has to answer to register |
Managing plugins¶
Plugins are managed in the AdminCP under Plugins (/admin/plugins):
- Install a plugin the first time you use it. Some plugins create settings or database tables at this point.
- Disable turns a plugin off but keeps its settings and data, and it can be enabled again later.
- Uninstall disables the plugin and removes its settings and data. For example, uninstalling Custom Tabs deletes all your tabs.
To write your own, see Creating a Plugin.
Markdown¶
Turns the text of tickets, ticket comments, wiki pages and project descriptions into formatted HTML using Markdown. It's installed and enabled by default.
Besides the standard CommonMark syntax it supports:
| Syntax | Result |
|---|---|
~~text~~ |
~~Strikethrough~~ |
\| a \| b \| tables |
GitHub-style tables |
https://example.com |
Links are created automatically |
@username |
Links to that user's profile, if the user exists |
#12 |
Links to ticket 12 in the current project |
Safety notes:
- Raw HTML is escaped, not rendered, so users can't inject HTML or scripts.
- Links with unsafe schemes (such as
javascript:) are not turned into links.
If you disable the plugin, text is shown as it was typed, without any formatting.
Custom Tabs¶
Adds extra links to the navigation bar, for example to your website, a documentation site or an external status page.
After installing, open Custom Tabs in the AdminCP (/admin/custom-tabs) and
click New. Each tab has:
| Field | Notes |
|---|---|
| Label | The text shown in the navigation bar |
| URL | Where the tab links to |
| Groups | Which user groups see the tab. A tab is hidden from any group you don't select, so pick every group that should see it, including Guests |
| Project | All shows the tab everywhere; or pick a project to show it only inside that project |
| Display order | Position among the tabs. Required, and must not be 0 |
Only http://, https:// and mailto: links, and site-relative addresses, are
used. A tab with any other kind of URL links to #.
reCAPTCHA¶
Adds Google reCAPTCHA to the registration form to stop automated sign-ups.
- Create a site on the reCAPTCHA admin console and copy the site key and secret key.
- Install the plugin. A reCAPTCHA tab is added to the AdminCP's settings pages (
/admin/settings/recaptcha). - Enter both keys and save.
The check only turns on once both keys are filled in. Registrations that fail the check are rejected with an error.
The domain you registered with Google must match the one your Traq runs on.
Security Questions¶
Asks new users a question that only a human familiar with your project is likely to answer, as a simple spam barrier. Registration is rejected if the answer is wrong.
- Install the plugin. A Security Questions tab is added to the AdminCP's settings pages (
/admin/settings/security-questions). - Click Add question and fill in:
- Question: the text shown to the user.
- Answers: the accepted answers, separated with
|. For example,blue|Blue|BLUE.
- Save.
A question is picked at random each time the registration form is shown.
Warning
Answers are matched exactly, including capitalisation, so list each spelling you want to accept. Add at least one question before the plugin is enabled, otherwise the registration form has no question to ask.
You can use reCAPTCHA and Security Questions together.