Documentation · ViewHelper reference

XSD schema file | vhs master

Media / SpotifyViewHelper

Renders HTML code to embed a Spotify play button. /

  • Tag usage example

    <v:media.spotify spotifyUri="NULL" width="[anySimpleType]" height="[anySimpleType]" compact="1" theme="'black'" view="'list'">
    	<!-- tag content - may be ignored! -->
    </v:media.spotify>
  • Inline usage example

    {v:media.spotify(spotifyUri: 'NULL', width: [anySimpleType], height: [anySimpleType], compact: 1, theme: ''black'', view: ''list'')}

Arguments

Argument Description Type
compact

Whether to render the compact button with a fixed height of 80px.

boolean
height

Height of the play button in pixels. Defaults to 380

anySimpleType
spotifyUri

Spotify URI to create the play button for. Right click any song, album or playlist in Spotify and select Copy Spotify URI.

string
theme

Theme to use. Can be "black" or "white" and is not available in compact mode. Defaults to "black".

string
view

View to use. Can be "list" or "coverart" and is not available in compact mode. Defaults to "list".

string
width

Width of the play button in pixels. Defaults to 300

anySimpleType
Required attribute

Revision history

commit 72a48628f5e6f3e857c697de22e449720ea830df
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Sun Jan 27 14:13:52 2013 +0100

    [FEATURE] Add ViewHelper to render embed Spotify play buttons

commit 812925e3b1be49d9c8b7a75bab5fbc815c00601d
Author: Claus Due <*****@wildside.dk>
Date:   Wed May 22 00:06:43 2013 +0200

    [TASK] Cleanup as required by coding standards
    
    Excuse the not-using-PR-direct-to-master commit approach but this one is merely cosmetic in nature and the Travis build is failing because of it.

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****@codearts.at>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file