Table of Contents
< All Topics
Print

Anonymous Users

Gnosis Applications support anonymous users alongside controlled Views for registered users with login User Accounts.

Anonymous Start Page

You can set the Anonymous Start Page to a Gnosis gshtml type file stored in a Gnosis Files folder as a landing page in the Gnosis Configuration App.

Open the Gnosis Configuration App:

/#dashboard:config

Set the AnonymousStartPage configuration setting to a Gnosis gshtml type file stored in a Gnosis Files folder. The file name requires a .gshtml extension, but the file path configuration does not need the .gshtml extension.

AnonymousStartPage = /pages/Landing

Gnosis gshtml type files stored in the Gnosis Files are similar to the gshtml type Gnosis Views. But there are a few special functions available to Gnosis Files gshtml files:

  • Layout—the Layout(“{gshtml file path}“) function calls another gshtml file as the page to render that will expose the calling gshtml file results as the special Body variable. This allows the separation of the general page layout from page body content, which can be its gshtml files.
  • Import—the Import(“{gshtml file path}“) function imports another gshtml file into the calling gshtml file. This allows for the separation of reusable code into many gshtml files.
  • RenderAs—the RenderAs(“{gshtml file path}“) function calls another gshtml file passing a Dict object. The result of the gshtml file is injected into the calling gshtml file. This allows separate gshtml files to act as a template for formatting data.

The AllowAnonymousLogin must be set to true to use the AnonymousStartPage.

AllowAnonymousLogin = true

Alternatively, you can use a Solution Layout-type View named Start. For this to work, you must:

  1. Set AllowAnonymousLogin to true.
  2. Include the Anonymous Team as a Member of the “{SolutionName} Users” Team.
  3. Set the Default Solution to the Solution for the Anonymous Team.

Login Redirect

Set the LoginRedirect configuration setting to ???

LoginRedirect = ???

Anonymous URL Show In Errors Log

When an anonymous user causes an error, the URL for the user is stored in the Error Logs.

Set the AnonymousShowInLogUrls configuration setting to a (:) delimited list of regular expressions ???

/Errors/AnonymousShowInLogUrls = ???