Extending or Overriding Playlist Templates
-
In the interest of not unnecessarily creating additional scripts or potentially introducing incompatible conflicts with built-in scripts, I’m working on trying to find ways to extend or override the templates and functionality created by the built-in [playist] shortcode, and it’s associated Backbone.js based templates/functionality. In doing so, I’ve ran into a couple of problems, most likely due to being unfamiliar with Backbone.
I’m wanting to be able to create video playlist pages that can utilize the built-in [playlist] shortcode, but split the playing video and the playlist items themselves out into separate elements. I want the videos to remain in the main content area, and the playlist to show in the sidebar, or another defined area. I’ve gotten as far as overriding the shortcode to point to custom script and template definitions, and duplicating the wp-playlist.js file and wp_underscore_playlist_templates function, to at least, initially, modify the layout and data structure, but now, since the playlist is outside of the main Backbone view, I’m running into problems maintaining the functionality of jumping to new videos.
Has anyone worked with modifying the template files or creating customizations of the default playlist in this way?
- The topic ‘Extending or Overriding Playlist Templates’ is closed to new replies.