globalcation property

hanahavandi's Avatar

hanahavandi

24 Apr, 2019 08:21 PM

Hi,
If you have the globalcaption property set to true and there are no slides, massive js errors stop the page from working.
Is there any way to avoid errors when either there are no slides to begin with or if slides are removed until there are no slides.
Thanks

  1. Support Staff 1 Posted by Dmitry Semenov on 25 Apr, 2019 03:57 AM

    Dmitry Semenov's Avatar

    Hello,

    You can replace all slides dynamically as described here http://help.dimsemenov.com/kb/royalslider-javascript-api/replacing-...

  2. 2 Posted by hanahavandi on 25 Apr, 2019 08:24 AM

    hanahavandi's Avatar

    Hi
    Thanks for reply.
    Our UI is such that a user can create a slide or delete a slide one at a time and if he deletes slides until there are no more, then we get errors.

  3. Support Staff 3 Posted by Dmitry Semenov on 25 Apr, 2019 01:11 PM

    Dmitry Semenov's Avatar

    Unfortunately, currently, there is no functionality that would allow zero slides. You need to call destroy() instead of removing the last/only slide.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac