[drupal-devel] Working around node_access in node/add

Gerhard Killesreiter killesreiter at physik.uni-freiburg.de
Mon Feb 14 07:03:14 UTC 2005



On Sun, 13 Feb 2005, Mark wrote:

> Gerhard Killesreiter wrote:
>
> >>Thats's basically what I'm trying to do.  I use a path of
> >>node/add/$type/parent/$parent_nid, and only want to require certain
> >>
> >>
> >
> >Can't you use an entirely new path?
> >
> >create/$type/$parent for example.
> >
> >Then disable or hide node/add through menu.module.
> >I agree that it is hackish but less hackish than what you proposed.
> >
>
>
> My main goal is to keep the nodes from showing up in the node/add list
> and from being created .

node/add will be unavailable if you disable that menu entry.

>  To additionally keep them out of the menu
> would just be a bonus for me.  I could just put in the README.txt for my
> module that admins should remove these node types from the menu, but it
> still wouldn't keep clever folks from hand-entering an inappropriate
> node type and creating inconsistent node structures.

Nope. The menu controls what urls work.

Cheers,
	Gerhard




More information about the drupal-devel mailing list