Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    SOLVED Pre-home functionality before entering the site

    Cloud CMS (Pagebuilder, Blog, Shop, Newsletters, Code Editor)
    2
    3
    501
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MJ LAMOURET
      MJ LAMOURET last edited by MJ LAMOURET

      We need to redo a site in the area of โ€‹โ€‹alcohol, which involves displaying a prevention message before entering the site (example here: https://www.associationdesbarmendefrance.fr), is this possible with AppDrag, if so how?

      4e18cfb5-947b-4f82-8504-2943c8209431-image.png ![alt text](fe2f6569-3c99-4480-92bd-8a4410f48d9a-image.png image url)

      Joseph Benguira 1 Reply Last reply Reply Quote 0
      • Joseph Benguira
        Joseph Benguira @MJ LAMOURET last edited by

        @mj-lamouret you can do that in Javascript, I recommend checking a localstorage or cookie to check if was already accepted or not by a visitor, if not you redirect to the "blocker" page asking user confirmation

        You can place this block of script in the footer of your site so it will be applied to ALL pages ๐Ÿ™‚

        <script>
            if ( localStorage.getItem("TermsAccepted") != "yes"){
                  window.location.href = '/confirm.html'
            }
        </script>
        

        Then on the confirm.html page on your accept button you can place this javascript action:

        localStorage.setItem("TermsAccepted", "yes");
        
        MJ LAMOURET 1 Reply Last reply Reply Quote 0
        • MJ LAMOURET
          MJ LAMOURET @Joseph Benguira last edited by

          @joseph-benguira Great, I will try ๐Ÿ™ !

          1 Reply Last reply Reply Quote 1
          • First post
            Last post