Okay
  Public Ticket #2636549
Add dynamic Playlist to Elementor page template
Closed

Comments

  • Dmitry Bychenko started the conversation

    Hello, we bought Sonaar Music Player plugin from you.

    1. We created CPT (Custom Post Type) called Books (Книги) with JetEngine plugin. We chose Playlist for particular CPT.
      https://prnt.sc/w5ovsk
    2. We created CPT template in Elementor, which pulls data from CPT's:
      https://prnt.sc/w5oxnu
    3. CPT template dynamically pulls all needed data from CPT: CPT title, Content, Excerpt, Featured image, Custom meta data, etc.
    4. We've tried all options in MP3 Music Player - Playlist Title - Dynamic Tags - Custom Meta Field, nothing pulls Playlist from backend.
      https://prnt.sc/w5p17i

    We want to create 1 CPT template, so all CPT's use this template to render.

    We use dynamic tags to display different CPT's with 1 template.

    Everything works as expected, except for Player / Playlists.

    How to make Playlists appear properly with 1 CPT template when different CPT's are being loaded?

  •  1,104
    Max replied

    Hi

    Sorry I don't understand your screenshot or the structure you are doing. Screenshots confuses me because they are not really in English so I don't understand. 

    But first of all, I think your issue is related to the repeater field does your plugin support repeater groups? Our player use cmb2 repeater for the Playlist. 


    Thanks,


    Max from the Sonaar.io Crew

  • Dmitry Bychenko replied

    Hello there,

    The structure is pretty easy and pretty standard.

    1. You create a page template with elementor.
    2. You assign posts/pages/other post types to use this template in front-end to display pages.
    3. You get all posts look the same according to the template.
    Thats all.

    To achieve this you need to use "dynamic tags" in elementor.
    This is when page title (for example) is pulled dynamically from each post.

    For example, despite you using just one page template
    on page A you see its own title, content, image and so on.
    on page B you see its own title, content, image and so on.
    on page C you see its own title, content, image and so on.

    The question is how to get the same thing with Playlists?
    How to have different Sonaar Playlists on different pages?

    https://prnt.sc/w63e52

    How I think it should work?
    If most of things in WP / Elementor can be used dynamically (Post titles, excerpts, featured images, content, meta data and other things), i guess Sonnaar Player also designed to work like this.
    Because it is some sort of standard things.

    I wanted to choose specific Playlist in each post
    and get it pulled out in front-end,
    just like other things being pulled out by page template, for example Post title.

    My question is
    How to get (their own) Playlists being pulled out by elementor template into front-end on every single page?

    Without using repeater fields / separate tracks. Whole playlists. If it is possible.

  •  1,104
    Max replied

    Hi,

    check this setting: https://d.pr/i/2v01v6

    this will make the playlist to pulls its source medias directly from the dynamic post: https://d.pr/i/VrEAZu

    Thanks,


    Max from the Sonaar.io Crew

  • Quentin replied

    Hi,

    I have the same needs but for the Parallax Grid when displaying a playlist in an artist page, it could be nice to automatically grabs the "playlist" from the artist and not needs to select it for each artist, otherwise it's impossible to use an elementor global template for all the artists.

    Same for the video List which needs to choose the artist, would be nice to have an option or a "code" to be able to choose the artist depending of the artist page we are one.

    Thanks,

  • Dmitry Bychenko replied

    Thank you! It worked

    Issue solved.