Hi,
I'd like my users to be able to see only panels I've defined. They should be restricted from entering pages like node/1.

Amitai

Comments

merlinofchaos’s picture

Status: Active » Fixed

You'll have to utilize Drupal's node_access system to do that, and I think you'll find it to be a lot more trouble than it's worth. It's kind of hairy to code for.

I don't think you can easily accomplish what you're asking here.

amitaibu’s picture

Hi, it is now possible with the WorkFlow-ng module. check this out:
http://drupal.org/node/163673#comment-282804

amitaibu’s picture

Title: how to restrict non-admin from non-panel pages? » how to re-direct from nodes to panel pages?
Category: support » feature
Status: Fixed » Active

Scenario
----------
1. There content type called story (node/1; node/2)
2. Instead of showing the content type as is, a panel is build (panel/story/1; panels/story/2)

Problem
----------
The problem now is how to prevent the user to access node/1; node/2
I see two ways, interesting to see what you guys think would be the best way of achieving this goal:

1. Workflow-ng, can already do this. However because of the nature of the module for anonymous users, the page cache should be disabled – big disadvantage.
2. Something similar to global redirect only for Panels - i.e. define which content type to be redirected.

summit’s picture

Hi,

I am very curious about this also.
Another option is may be to be able to make the url-redirect in the node.tpl.php.
It is working for the ad module.
I would like to see it also working for links_weblink.
May be this is the wrong track, but I think it could be done through getting the right variable ready to place instead of $node_url.

greetings,
Martijn

merlinofchaos’s picture

One of the things I'm attempting to do is to make Panels be something that can permanently replace node/%nid/view -- maybe that's what you're really looking for?

amitaibu’s picture

Exactly

merlinofchaos’s picture

Status: Active » Fixed

This now works. Set your URL to 'node/%' and add a Node ID argument.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

asak’s picture

(I will not open this but just ask a related question)

How can I restrict now the panel for displaying on "node/%" to selected content types only?

From what i understand the url is actually always 'node/x' for any content type, even when using custom paths/aliases.

Thank you!

UPDATE: 2 seconds later i found http://drupal.org/node/206185 - sorry for the stupid question ;)