I want to be able to opt for the visibility of the "Children" tab for every node type that i declare as Parent capable.
I'm thinking this shouldn't be so hard.
I'll put a patch here when I have a solution.

Comments

andreiashu’s picture

I forgot to say why I need this.
I created a view that mimics the functionality of the children tab but it is much more flexible: it is a view :) => i can paginate the results, add cck fields, sort, etc etc

so i'm thinking that probably i won't be the only one that needs this.

andreiashu’s picture

StatusFileSize
new1.8 KB
andreiashu’s picture

Status: Active » Needs review

d.o seems that has a bug :( it erases my comment if i attach something...

Here is the description of #2:
"As promised here is the patch.
The setting defaults to "Show Children tab" of course.
The description and comments in code are still not complete, but i'm hoping that someone could give me more hints :) Excepting this the patch works as advertised."

reinis.berzins’s picture

Strangely this patch breaks all input forms (e.g. node edit form, views edit form, even though the latter is not related to nodehierarchy) - when I press "Save" button on node or view edit form the screen turns white and stops. When I remove the patched version and restore the original nodehierarchy.module file, all input forms work without problems.

However, I managed to hide the "Children" tab by simply editing the original nodehierarchy.module file in row 84, changing it from:

$items['node/%node/children'] = array(

to

$items['node1/%node/children'] = array(

i.e. just change node/% to some coexistent value like e.g. node1/%

markhalliwell’s picture

I think this is a nice feature, however this should also be implemented in the admin configuration (and node type settings) with the option to override on the node. I will look at this a little more this afternoon and upload a updated patch for #2.

Reference #921198: Rework administration and node create/edit with new features and clean design

markhalliwell’s picture

Status: Needs review » Closed (duplicate)

closing this ticket as dup of #921198: Rework administration and node create/edit with new features and clean design

This feature is included in the patch of the above issue.