Loading...
 
Features / Usability

Features / Usability


Creating custom error messages in Tiki

posts: 6

Hello.

We are using Tiki (12.x - upgrading soon to 17.x) for numerous private project sites all tied to a common LDAP authentication server. We have the permissions on each Tiki set to only allow access for users in a group ("members"). Both anonymous and registered groups don't get to see content.

When new users go to the site home page they see:

Error
You do not have permission to view this page.

Once they try to log in the first time - aka get added to the 'registered' group - they still see the same message. Then a site admin gets a mail notification that a user has registered - and if appropriate, adds the user to the 'members' group to give them access.

Is there a way to change the "You do not have permission to view this page." message to something like "You do not have permission to view this page yet. Please try to log in to the site the first time. This will register your account and a site manager will get an email notification that you have registered. If the site administrator approves your access and adds your account to the members group you will be notified by email that your access has been approved and you should now be able to see the site content."

Thank you.

posts: 3665 United States

Easy. Use the On permission denied, send to URL option on the Admin: General page to point to a wiki page in which you can create whatever message you want. See the docs for details.

You even use the Group plugin to customize the error message, based on the user's group (for example, show a PLEASE REGISTER message for anonymous, but something different it it is a registered user who simply doesn't have the right permission).

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.

posts: 6

That worked perfect! Thank you.

Also had to create a category for 'open content' to assign the created message page to - then gave anonymous view permissions to pages in this category (otherwise the default was to not allow anonymous to view any wiki page content).

Thanks for the help!