Okay
  Public Ticket #1404505
dynamic slides, php vars, slideshow done
Closed

Comments

  • websmx started the conversation

    Thanks for building such a polished and elegant slider. Currently I am working on a digital signage system for our computer department using Layerslider as the base. After researching many sliders, yours is the most elegant and cleanest code output IMHO. ;)

    I have a few questions.

    First, for dynamic slides, I can easily create slides based on posts (or tax), but once created, are they then just static? Can it automatically update a current slider with new posts when refreshing the slider.? Ie, I would want it to show an animated slide for all "news" posts. 

    Is there a way to switch to a new slider ID using a php method... or do you have to run it as a shortcode (either in content or theme)? Something like index.php/?slider=3.

    Last, the biggest trick is sequencing separate sliders. Our idea is to use REACT to dynamic load URLs for separate layersliders (some created in layerslider, and some created virtually via ACF fields) into the DOM based on day/time and playlist order (created using ACF fields). I am able to detect when at the last slide (slider.slides.current.index == slider.slides.count) but what is a better way to detect when the entire current slideshow is done.

    Would be nice if there were some more advanced examples at https://layerslider.kreaturamedia.com/documentation/. ;)

    Best,

    Jonathan

  • [deleted] replied

    Hello Jonathan,

    Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today.

    I would like to confirm that we have received your message. Due to the nature of the issue you are experiencing, I will have to contact and consult with the development team first. I will get back to you as soon as I can.

    We appreciate your patience while we're working towards your ticket.

  • [deleted] replied

    Hello again,

    1. The Dynamic content from posts feature is used exactly for this. The filters set in the Dynamic posts options are used to target posts that you want to display. For example from a category or posts with certain tags. New posts that fit the settings will appear there automatically, so it's continually updated as you add new content.

    2. You can use the layerslider( $id ) function for this. If you would like to read and dynamically display a slider from an URL, here's an example:

    <?php layerslider( (int) $_GET['slider'] ) ?>

    3. The code you wrote seems good, if you want to use it to determine whether the slider is at the last slide. Currently this solution is available, or you could also use events like slideTimelineDidComplete. You can find a more detailed description about the available API events on the following URL: https://support.kreaturamedia.com/docs/layersliderwp/documentation.html#api-events

  •  2
    sztibor replied

    "1. The Dynamic content from posts feature is used exactly for this. The filters set in the Dynamic posts options are used to target posts that you want to display. For example from a category or posts with certain tags. New posts that fit the settings will appear there automatically, so it's continually updated as you add new content."


    No, new posts DO NOT APPEAR automatically. It's not working!

  • [deleted] replied

    Dear sztibor,

    Yes, the feature does work, but you might not have configured it properly thus the error. Please create a new ticket for your case so we can help you set it up.