DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Is it possible to show a different homepage to NEW versus RETURNING visitors?

Sort:
You are not authorized to post a reply.





New Around Here





    Is it possible to set a cookie so that whenever a new person visits my page, they see a different homepage than if they are a returning visitor?

    Sort of like a splash page?

     






    Veteran Member





      Well, you can actually set a splash page. It resides under :
      Settings - Site settings - Site behavior - default pages
      Tjep's digital agencyRegards,
      Tycho de Waard

      Tjep's digital agency
      We just love DNN
      https://www.tjeps.com





      New Around Here





        Thanks for your reply. Do you know how it behaves? I.e., does it only show once to users?

        Thank you!






        Growing Member





          I believe the splash page will show for anyone visiting the ROOT of the website, but if you click on the logo or HOME in the menu, it will take you to the page you have defined as the homepage.

          So ANY visitor hitting the root of the site will see the splash page.
          Chris Hammond Christoc.com Software Solutions
          With DNN since before it was DNN!
          Open Source Projects and Tutorials since 2003





          Veteran Member





            I don't know of any possibility for that use case out of the box, but it should be possible to set a cookie when a visitor is visiting the splash page, and if the cookie is there, redirect to the "normal" start page or the requested page. This could be realized with some JavaScript injection on the Splash page, I would use Will Strohls Content Injection module for that (see https://github.com/hismig...tInjection-02.00.02)

            Happy DNNing!
            Michael

            Michael Tobisch
            DNN★MVP

            dnnWerk Austria
            DNN Connect





            Veteran Member





              I have done this in several ways, but what you could do is set a cookie using JS when the page is loaded.

              Our Style helper (Skin Object) has a redirect option and an IfCookie filter, which would allow you get what you want.
              You would have to change the landing page skin for this though.

              https://www.40fingers.net...ucts/DNN-Stylehelper

              You are not authorized to post a reply.

              These Forums are dedicated to the discussion of DNN Platform.

              For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

              1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
              2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
              3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
              4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
              5. No Flaming or Trolling.
              6. No Profanity, Racism, or Prejudice.
              7. Site Moderators have the final word on approving / removing a thread or post or comment.
              8. English language posting only, please.

              Would you like to help us?

              Awesome! Simply post in the forums using the link below and we'll get you started.

              Get Involved