Can I have a page NOT appear in Content Management.
Apologies, I’m finding it hard to describe what I’m trying to do, so I appreciate anyone allowing for descriptive license and hopefully offering some advice.
I have added a new menu item (under Navigation) and have created a page (containing other links) that this menu points to… all works fine. This is similar to a duplicate of the ‘Create Content’ menu and page.
The original ‘Create Content’ menu points to ?q=node/add . My new menu points to ?q=node/2 (correctly to the page I created).
Question is… the page I created (?q=node/2) is visible/editable/delete'able under Content Management, so is there another way to create or hide/protect my new page so that it is like ?q=node/add and not listed in the Content Management.
Really sorry about my description!
Thanks for any help.

> Question is… the page is
> Question is… the page is visible/editable/delete'able under Content Management
Viewing the 'content management' depends on 'administer nodes' permission I think.
So that is your first line of defence; only give this permission to users who are content administrators.
Next, the 'content management' page simply LISTS all nodes.
When 'edit' is clicked, the admin is taken to the actual node for for the operation.
The ability to edit/delete will depend on whether they have permission to do so for that node.
This is the key to your problem...
Method 1 (module):
Using the 'node privacy by role' module, I would turn off 'edit' and 'delete' permission
for node/2 for all roles (the exception being the super admin).
http://drupal.org/project/node_privacy_byrole
I plan to install this module on every site I make, so it's a good solution for me.
Method 2 (core):
If you don't want to install the above module, then you could get a similar effect by creating a
special content-type for your protected pages, put yourself into a special user-class, then only
give yourself permission to edit/delete that content-type.
Expanding on this method, there is also a module which gives you more flexible 'content-type' permissions:
http://drupal.org/project/content_access
Thank you Anti
I'll have a look at the module suggestions, but I'm trying to keep modules to a minimum if possible.
Could you point me in the right direction for more info on your Method 2 (core), I'm not sure I follow that too well.
It is only a small site with myself as the only one with admin rights, but I'm worried that, what is in effect, part of my menu system (this page I've created) is listed amongst all the other content which I could accidently delete!
I was hoping that it might be possible to somehow create a modified copy of the 'node/add' which doesn't show in content management, but I can't figure if/how it's possible!
> is listed amongst all the
> is listed amongst all the other content which I could accidentally delete!
Actually, when I went to write down instructions for you, I found I was wrong:
Of course, you can't protect content deletion against the super-user (I knew that).
But I found out that you also can't protect content deletion against anyone with the 'administer nodes' permission... if you can access the 'content management list' page, then you can also edit/delete the content (both on the list page and the buttons in the node edit page). In other words, the 'administer nodes' permission over-rides the individual permissions for each content-type. I didn't know that - I assumed the content management page would adhere to the permissions for each content-type, not over-ride them.
So as far as I'm aware you can't protect your content *and* still have access to the 'content management list' page. Unless the 'content access' module over-rides the 'administer nodes' permission - unlikely though.
> Actually, when I went to
> Actually, when I went to write down instructions for you, I found I was wrong:
Thanks for the correction Anti.
I know it is probably going to be beyond me, but!!!... does anyone know where the 'node/add' is located, am I right in thinking it's in a db table and would it be possible to create (easily) another one and modify it... say 'node/add2' ?
The node/add behaves exactly as I would prefer my page (not listed in content management).
I'm guessing this is probably core stuff and beyond me, or perhaps something that shouldn't be messed with!?
> does anyone know where the
> does anyone know where the 'node/add' is located, am I right in thinking it's in a db table
No, it's not in a db table exactly. node/add is made dynamically by a piece of script which takes the title and descriptions of the content-types, displays a list of them. If you just need to change the title of a content-type, or its description, then the proper place to do that would be admin -> Content management -> content-types.
> perhaps something that shouldn't be messed with!?
It is never best-practise to change core script, because you have to remember what you did and reapply it to every upgrade, with no guarantee that your change works or doesn't break something in later versions.
Maybe it would help to explain what you actually want to do with that page? Are you try to add an extra description to it, or something? The way I, as a relative noob, would do that would be to put a 'region' in my theme above the content, then place a block in that region which was only visible on the node/add page.
Agree. The core I wouldn’t
Agree. The core I wouldn’t want to mess with, exactly for the reasons you say.
In essence, all I am trying to do is create an alternative menu, visible to users, instead of the out of the box ‘Create Content’, but I also want to retain the o-o-t-b ‘Create Content’ for my own (as admin) use.
I’ll try to elaborate, sorry to be repetitive, I think your already with me most of the way:-
Envision this new menu has just having different descriptive text to ‘Create Content’, but same functionality, such as:- ‘Create Content’ becomes ‘Submit Article’, sub menus would be:- ‘Story’ becomes (multi option) 1.‘Mustang Article’ – 2.’Corvette Article’ – 3. ‘Trans-Am Article’ etc.
I have no problem creating my new menu and the taxonomy terms to categorise my content, so that is all ok. My problem is clicking the o-o-t-b (sorry don’t have a better description) ‘Create Content’ opens up/displays the ‘node/add’ page. This ‘node/add’ is secure because it isn’t listed/can’t be deleted within ‘Content Management’. However, my new ‘Submit Article’ menus and sub menus needed an alternative ‘node/add’ page, because the standard node/add text/links are naturally all wrong, so I created a page for my ‘Submit Article’ menu to point to and Drupal called this page ‘node/2’, but also lists it in Content Management and therefore susceptible to accidental deletion/change, which worries me, even though I (as admin) am the only one with permissions to do so.
My apologies, it is a lot to expect anyone to read and comprehend all my newbie witterings and terminology… hope it makes some sense and thanks again for your advice!
> Envision this new menu has
> Envision this new menu has just having different descriptive text to ‘Create Content’,
> but same functionality, such as:- ‘Create Content’ becomes ‘Submit Article’, sub menus
> would be:-
> ‘Story’ becomes (multi option) 1.‘Mustang Article’ – 2.’Corvette Article’ – 3. ‘Trans-Am Article’ etc.
Is there any particular reason why you need to do these with separate content-types?
The 'drupal way' to do this would be to have just one content type called 'car article'.
Then when the user went to create their article, there would be a drop down box with the
appropriate 'vocabulary' and its 'taxonomy' terms to choose from on the 'create' page. In
other words, the each article is 'tagged' with meaningful words and phrases. These are
then used to display the articles in 'sections' or 'groups'. For instance, to display a page
which lists all 'nodes' (pieces of content) tagged with 'corvette'.
If you don't yet know anything about the 'taxonomy' tagging system, you should learn about it in
tandem with content-types before designing how your site is going to work.