NEW: Planner, the Gantt you can edit. 30% off until January 1 Get Planner

Notes, buttons and votes in Widget articles

One markup serves a wiki page, a CMS page and the Widget: a note is a note everywhere, and a button is an ordinary link outside the Widget. There are no new wiki macros. A wiki article is rendered with the text formatting of the whole Redmine (Administration, Settings, General, Text formatting), not per page: on a Textile site write Textile, and a Markdown note works only on a Markdown site (Redmine 6.1 or 7). A CMS page is HTML. The server sanitizes every article: scripts, style, id, event handlers, forms, iframes and unknown classes are removed.

Notes

There are five kinds: note, tip, important, warning and caution.

widget-article-callouts.png

Format How to write a note
Markdown (Redmine 6.1 and 7) start a quote with > [!TIP] and write the text on the next lines. Redmine 5 and 6.0 have no CommonMark alerts
Textile (Redmine 5, 6, 7) p(warning). Text
CMS HTML a div, p or blockquote with the class note, tip, important, warning or caution
> [!NOTE]
> Needs Redmine 5 or later.

Buttons

A button is primary or secondary; an article can have any number of them, anywhere.

widget-article-buttons.png

Format How to write a button
Textile Download, or cta-secondary for the quiet one
CMS HTML a link with the class cta-primary or cta-secondary
Markdown an action link, always primary: Markdown has no classes

A link without a class stays an ordinary link. The link target chooses the action:

Target Action
https://..., http://..., mailto:... opens the link in a new tab
a [[Page]] link, or a CMS page of the list opens that article in the panel
#hdw-ask opens the Ask AI tab
#hdw-contact opens the Contact us tab
#hdw-close closes the Widget
#hdw-event-NAME raises the event article_cta with action: "event" and name: "NAME" (a-z, 0-9, _, up to 40 characters); your onEvent reacts

Textile cannot write #hdw-... links; use Markdown or CMS HTML for them.

[Talk to us](#hdw-contact)

[Ask the assistant](#hdw-ask)

[Start a trial](#hdw-event-start_trial)

<a class="cta-secondary" href="#hdw-close">Not now</a>

Was this article helpful?

hdwDataLayer.push({ articles: { vote: true } });

widget-article-vote.png

Yes and No appear at the end of every article in the panel, then a thank-you. The vote is the event article_vote with source and helpful. The Widget stores nothing on the server and has no report, so you count votes in your own analytics (Events and analytics). One vote per article per browser: the browser keeps the flag hdw_vote_SOURCE in the localStorage of your site, so mention it in your consent text if you list what the site stores. A rich message and the article inside it have no vote. Edit an article and the old votes stay with the old flag: there is no reset.

Not available

Video in articles, a Copy article button and article permalinks do not exist. Link to a video with a button.

Related articles

Was this article helpful? Yes  No
1 from 2 found this helpful