0

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?

9
  • 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)? Commented Nov 5, 2015 at 12:24
  • Please explain the main problem..? What you actual want..? Commented Nov 5, 2015 at 12:36
  • Which "rules" do you mean, the "Rules" module, or something else? Plese EDIT your question to clarify that. Commented 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
    Commented 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
    Commented Nov 6, 2015 at 11:34

1 Answer 1

0

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.

1
  • 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
    Commented Nov 6, 2015 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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