A block is the most flexible way to offer customizeable "create" links for Node Hierarchy.

This Block can be placed below the content (default) or in any other region provided by drupal.

CommentFileSizeAuthor
nodehierarchy_blocks.zip1.27 KBderjochenmeyer

Comments

danielb’s picture

That's fantastic, but it doesn't work unless you have a theme with a particular region called 'content' which I don't.

You need to change this

    $blocks[0] = array(
      'info' => t('Extend Node Hierarchy'),
      'weight' => 0, 
      'status' => 1, 
      'region' => 'content'
    );

to this

    $blocks[0] = array(
      'info' => t('Extend Node Hierarchy'),
    );

dgorton’s picture

Component: Code » Documentation
Status: Active » Closed (fixed)

This is a nice example of how to extend NH. I don't know that it will make it into the core module, but I've added a page to the docs for code examples and placed it there: http://drupal.org/node/895870#comment-3382200. Thanks much for sharing!

gapuryear’s picture

How can this be made to support drupal 7?