b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Front-office Reference
  3. Disp Reference
  4. disp = access_denied

disp = access_denied

This Disp is used when the current collection is private and the current User is not allowed to access it.

Collections can be made private through the Collection Permission Settings.

This, of course, only applies as long as the particular skin you are using doesn’t completely override the behavior of b2evolution’s default disp=access_denied handler.

Default Container and Widgets

Below is the default main Container and Widgets of this $disp that comes with b2evolution. Yours may look different depending on the particular skin in use and the widgets currently installed and how they are configured.

disp = access_denied

Customizing the Access Denied message

We can make some simple customization to the message displayed in the access denied page just by editing the settings of the default widgets.

In your collection’s Widget List, locate the Content Block (Access Denied) widget inside the "Access Denied" container:

disp = access_denied

In the widget settings, you can specify the ID or the slug of the content block to display. You can also edit the text of the existing content block by clicking on the edit link after the Item ID or Item slug fields. For more information on configuring this widget, please see: Content Block Widget

disp = access_denied

In this case, we opted to edit the currently used content-block by clicking on the edit link. We modify the contents and then save it.

disp = access_denied

Below is the result of the customization that we just made:

disp = access_denied

Tip: We can also fully customize how this disp will look by creating or replacing the _access_denied.disp.php file in the currently used skin’s folder.

Created by fplanque • Last edit by winskie on 2019-04-19 03:09 • •

No feedback yet

On this page

  • Default Container and Widgets
  • Customizing the Access Denied message

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
    • Collection Types
    • Disp Reference
      • User Profile Disps
      • disp = 404
      • disp = access_denied
      • disp = access_requires_login
      • disp = activateinfo
      • disp = arcdir
      • disp = catdir
      • disp = comments
      • disp = contacts
      • disp = download
      • disp = edit
      • disp = edit_comment
      • disp = feedback-popup
      • disp = flagged
      • disp = front
      • disp = help
      • disp = login
      • disp = lostpassword
      • disp = mediaidx
      • disp = messages
      • disp = msgform
      • disp = page
      • disp = postidx
      • disp = posts
      • disp = proposechange
      • disp = register
      • disp = search
      • disp = single
      • disp = sitemap
      • disp = tags
      • disp = terms
      • disp = threads
      • disp = usercomments
      • disp = useritems
      • disp = users
      • disp = visits
      • disp_detail = posts-cat
      • disp_detail = posts-date
      • disp_detail = posts-default
      • disp_detail = posts-filtered
      • disp_detail = posts-next
      • disp_detail = posts-subcat
      • disp_detail = posts-tag
      • disp_detail = posts-topcat
    • Widgets Reference
    • The In-skin Edit Screen
    • Comments / Feedback Area
    • Social Media Meta Tags
    • Workflow Panel
    • Flagging Items
  • Back-office Reference
  • Developer Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
CMS + email marketing

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque