Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9081539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:20:19+00:00 2026-06-16T20:20:19+00:00

I would like to use a different layout view for anonymous users. I have

  • 0

I would like to use a different layout view for anonymous users. I have tried using url alternates and I am not sure how I can create a layout for anonymous users since there is no particular url for them.
The idea is that, if a new user visits the site I want to show a splash screen with very limited information with an option to register/ login to view the full site. This splash screen will have a completely different layout / look and feel from the rest of the site.
I tried using the Anonymous user layer but all I could do was move widgets (maybe I am missing something).

Any help would be greatly appreciated.
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:20:20+00:00Added an answer on June 16, 2026 at 8:20 pm

    There is no out of the box solution but you can do something like this to get what you want:

    Add new layout in a file with the name of your choosing – for example, you could name it Splash.cshtml.

    Add the code below to the top of your Layout.cshtml template:

    @if (WorkContext.CurrentUser == null) {
        @Display.Splash()
        return;
    }
    

    The code will check if the user is logged in. If it’s not, it will render the content of your Splash.cshtml template, and stop the rendering of the rest of the Layout.cshtml template.

    If you need to display any of the widgets in your Splash.cshtml template, you could add it by simply adding @Display(Layout.NameOfTheZone) where you should replace NameOfTheZone with the actual name of the zone you’re using inside the Layout.cshtml template. Generally, anything that you use inside Layout.cshtml template with the Model object, you can use through Layout object inside any of your views.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using storyboards to layout my view controllers and I would like to use
I would like to use the logout function from Django but not sure how
I would like to use different instances of an STL custom allocator class to
I'm working with cakephp 2.0 and would like to use different css for each
I have an array of Integers in Java, I would like use only a
I would like to use D3.js (or maybe Raphaël ) for backend-generated reports using
I would like to make a layout using Java Swing which looks like the
I am trying to do a basic div layout and would like to use
I have a view. I would like to be able to put 1-3 UIPickerView
I would like to use R to extract the speaker out of scripts formatted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.