In NH 6.x-1.x there is a Views Filter that allows you to filter the nodes by the node-id of their parent node.
With this filter one could easily display all nodes that don't have parents just by entering "0" in this filter. All nodes that are childs (no matter to which node they are childs) would be filtered out.

This functionallity doesn't seem to exist in 6.x-2.x branch of NH. Filters moved to arguments but what I'm describing above seems to have been disabled.

I don't know if I am the only one that needs such functionality, but I think it is usefull. It probably isn't much trouble to get it implemented since it is something that existed. Although I am not really a coder I'll give it a look to see if I can port it again to 6.x-2.x but if some coder knows how to do it then he is probably going to do it better than I am.

Comments

bserem’s picture

Component: Code » Drupal/PHP Code

I'm bumping this Issue, as told by the maintenairs here:

In an effort to reduce the stress of maintaining the issue queue, the maintainers of Node Hierarchy will be cleaning house. Issues over one year old have been asked to respond within a few weeks to determine validity and priority. If after an ample amount of time has passed with no response, the issue will be closed due to inactivity.

3cwebdev’s picture

+1 for this request. I desperately need the ability to create a view that shows only top-level parents (nodes that do not have a parent themselves)

jbylsma’s picture

Hopefully the patch in #1263918: Views improvement: documentation, filters, and default arguments will help you out. Let me know if it works for you!

jbylsma’s picture

Status: Active » Fixed

I've committed #1263918: Views improvement: documentation, filters, and default arguments, which should solve your issues. Take a look at 6.x-2.x-dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bserem’s picture

Sorry for not replying for many many months... I'm inexcusable. The project died and it didn't occur to me to see this issue.

Thanks for the patch, although I never managed to try it :)