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?

 5 Replies
 3 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 16
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
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
Well, you can actually set a splash page. It resides under :
Settings - Site settings - Site behavior - default pages
New Around Here
Posts: 16
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
Posts: 55
Growing Member
MVP
MVP
You're an MVP!
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.
Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!

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

DNN Connect
Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

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

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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