Download & Extend

Enable a block with "create child" funtionality

Project:Node Hierarchy
Version:6.x-2.x-dev
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSize
nodehierarchy_blocks.zip1.27 KB

Comments

#1

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'),
    );

#2

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!

nobody click here