Hiding your node profile on the node/add page
| Project: | Node Profile |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
This is as much a question as anything but I wasn't sure where this belonged.
In the fourth bullet point of the first step of the step-by-step documentation (found here) for this module it is recommended that you disable the menu item for the content type that will serve as your node profile. This doesn't, however, remove it from the node/add page. If someone actually clicks create content they will still see your node profile content type (and your usernode type for that matter aswell).
I have written a small module that has the ability to disable selected content types and I was wondering if you thought that it would be useful to other people. Should I create a project for it? Should something like it be incorporated here?
The module uses hook_menu to override node.module's menu item for node/add. It stores an array of the content types to hide and adds one piece of logic to the node_add functions logic to check if each of the items is supposed to be hidden before building and displaying the links for them. I hate to override a core function but its the only way to fix it in D5.
Should I make a patch and add this configuration to D7?
You can download the patch here.

#1
interesting. I think this would be best a separate project as it might be useful in several cases - not only for nodeprofile. Furthermore I think some users would be confused if we would hide it by default for nodeprofiles.
#2
I think that it could be a separate module which let admin select the conent to hide in the create menu.
nd this could be used by nodeprofile to hide its content type.
my_two_cents
#3
so I set this issue to won't fix.