This spotify playlist widget sends an email with a spotify playlist based on the user selected answers. It should primarily be used on interior pages with any HUT page template.


For this widget to function properly, the following parameters are required:

  • $webq_spotify_playlist_email_template - relative URL of the email template

Optional parameters :

  • $webq_spotify_playlist_notification_email - optional - email address to send notifications
  • $webq_spotify_playlist_notification_email_template - required if $webq_spotify_playlist_notification_email populated - relative URL of the notification email template


To setup this widget, follow these steps:

  1. Build the HTML pages for the email templates on the actual host using the "WebQ - Blank No HTML" template and the "WebQ - Spotify Playlist - Email Template" and "WebQ - Spotify Playlist - Send Notification" web page content from the web-q-hospital.prod.ehc.com host. i.e.: http://web-q-hospital.prod.ehc.com/global/hut/widgets/spotify-playlist/v1/send-email.dot and http://web-q-hospital.prod.ehc.com/global/hut/widgets/spotify-playlist/v1/send-notification.dot
  2. Set velocity parameters and dotparse the widget's code.
    #set($webq_spotify_playlist_email_template = "/local/custom/spotify-playlist/send-email.dot)
    #set($webq_spotify_playlist_notification_email = "albert.koncz@hcahealthcare.com")
    #set($webq_spotify_playlist_notification_email_template = "/local/custom/spotify-playlist/send-notification.dot")

Styles - Is this still needed?

The widget styles are in the https://web-q-hospital.secure.ehc.com/global/hut/widgets/css/webq-widgets.css and https://web-q-hospital.secure.ehc.com/global/hut/widgets/css/webq-widgets-eb.css stylesheet. Make sure this is included in /util/custom/start.vtl.

Use Snippet Generator

View Demo