openSUSE / suse-xsl

DocBook XSL Stylesheets for SUSE branding
Other
11 stars 10 forks source link

Implement Qualtrics rating #551

Closed tomschr closed 1 year ago

tomschr commented 1 year ago

From the meeting with Asya, we need an empty <div> container with an id. This empty container will appear in the third column after the "Share this page" social media links.

Two parameter are introduced:

Keep in mind, only when $generate.qualtrics.div != 0 AND $qualtrics.id != '' are set that the empty <div> is generated. This avoids a <div id=""> container with empty id.

Additionally, Qualtrics requires some JavaScript code in the header.


To enable the rating, use this command:

$ daps -v -d DC-file html --param generate.qualtrics.div=1

To use a different id than the default, use this command:

$ daps -v -d DC-file html --stringparam "qualtrics.id=my-own-id"