• Resolved javiergzlz

    (@javiergzlz)


    Is it possible to have client side rules?

    for example [timed-content-rule id=”0000″ side=”client”]

    My problem is, that I am using the plugin inside a builder, in a text block, and it only works if I use [timed-content-client], but if I use [timed-content-server] or [timed-content-rule id=”0000″], it doesn’t work, I would appreciate your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    No, client side rules can only be used as described.

    A server side rules differ in that way, that the whole content inside the shortcode will not be sent at all if the server side rule results in “hide”.

    A client side rule will have have the content always available and only hide or show it using JavaScript in the browser. It’s not intended to be a secure way of hiding content but more as an additional option to make things visible or hide them after a given time.

    If the server side rules don’t work for you, you may have some kind of caching which only fetches the content once and never evaluates any shortcodes later again. Maybe it’s the pagebuilder you are using to speed up page output. This does not matter with client side rules since they will only get executed in the browser.

    However – a client side rule also means that if a visitor disables JavaScript, all content will always be visible, even if the rules asks to hide it! Therefore it’s always recommended to use server side rules if you want to make sure that content is not available if you don’t want it.

    • This reply was modified 4 years, 1 month ago by Arno Welzel.
    Thread Starter javiergzlz

    (@javiergzlz)

    Thanks for answering, yes, indeed the server side rules do not work as I need because of the cache, if I clear the cache, or have it disabled, they work perfectly, anyway, thank you very much for being attentive.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Client side rules’ is closed to new replies.