Hi! I'd love for this module to have pagers that point to previous-up-next like in book. I've tried using custom pagers and a view, but it's kind of sketchy and it doesn't understand parents. But maybe somebody who knows more PHP than me could take a crack at it? At first glance it doesn't seem tooo hard :)
Comments
Comment #1
jaxtheking commentedI had the same probleme here. As you say, it couldn't have been to hard since the module already avails of a function ( nodehierarchy_get_children() ) which retrieves the children of a given node. Also, for getting the parent of a child could not be any simpler: just use $node->parent.
Anyway, this is the code I quickly put together. Take it as it is, but it should function. At the moment, I have this code in the template for my child content type (page-article.tpl.php). I dropped it in the content_bottom region. I'd be curious to know if block are "node-aware"... if they are then you could place this code in a block too.
Comment #2
Renee S commentedBlocks are not node aware, but you can simply declare
$node = menu_get_object();to get the current node object, and this would work great.Unfortunately I switched away from NH - it was imposing a huge overhead for not much gain, but I should give it another try on the dev site with this :)
Comment #3
markhalliwellCopy & Pasted: This issue pertains to the 6.x-1.x branch which is now legacy and is over one year old. If this issue is not applicable anymore, please consider closing it. Otherwise, please update this issue appropriately. Will be closed in two weeks if no response.