Posted by derjochenmeyer on June 22, 2009 at 12:40pm
Jump to:
| 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.
| Attachment | Size |
|---|---|
| nodehierarchy_blocks.zip | 1.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
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!