I'm using modules Content Access and Panels.

I need to modify the appearance of a node according to its accessibility by the user.

With Panels, I made 2 variants with selection rules (page "Node template"):

  1. when the node is not accessible
  2. when it is accessible.

But when the user has no access to the node he has a denied access and not the panel.

Do you know how to bypass node access with Panels?

  • Do you actually want to show the user some of the content of the node, or just give them a custom page (eg. to prompt them to sign up)? Nov 5, 2015 at 12:24
  • Please explain the main problem..? What you actual want..? Nov 5, 2015 at 12:36
  • Which "rules" do you mean, the "Rules" module, or something else? Plese EDIT your question to clarify that. Nov 5, 2015 at 13:04
  • @Alfred Armstrong some of the content of the node (for example : the title, the teaser and the comments)
    – Frouite
    Nov 6, 2015 at 11:34
  • @Kamal Oberoi To summarize: I wish to show a teaser of an article when the user has no access to the content, and all the article when there is access. I thought of using Panels, but it has can be another solution there.
    – Frouite
    Nov 6, 2015 at 11:34

1 Answer 1


To overrider the default Access Denied page of the Drupal, you have to change the path of this page.

To change the page path, follow these steps:

  1. Go to admin/config/system/site-information.
  2. At the bottom of the page, there is a Error Pages section.
  3. There is a field Default 403 (access denied) page. Provide your custom panel page link.
  4. And the save it.

I hope it will work.

  • thanks for this proposal. It is not going to raise problem for example when the denied access will not be in touch with the access in a node?
    – Frouite
    Nov 6, 2015 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.