Hey,
I have some content types that I don't want to be listed in the create content page, but I still want user to have permissions to create them.

For example, I want users to be able to post in a forum, but I don't want "Forum topic" to be listed in types list.

I don't want to remove completely the "create content" menu item, and just removing "Forum topic" from the create content menu in admin/build/menu doesn't prevent it from appearing on the page itself.

any ideas?

Comments

alphaXp’s picture

do you think my request is even possible?

edit:
I've just went through the node module. This is the code that generates the types list:

foreach ($types as $type) {
      if (function_exists($type->module .'_form') && node_access('create', $type->type)) {
        $type_url_str = str_replace('_', '-', $type->type);
        $title = t('Add a new @s.', array('@s' => $type->name));
        $out = '<dt>'. l(drupal_ucfirst($type->name), "node/add/$type_url_str", array('title' => $title)) .'</dt>';
        $out .= '<dd>'. filter_xss_admin($type->description) .'</dd>';
        $item[$type->type] = $out;
      }
    }

I don't see here any mechanism that I could use to remove types from that list.
kinda disappointing...