When creating a view consisting of children, parentID or parent title, are not available as fields so that they can appear as a column in a table of children. I searched everywhere but can't find it..

The only thing available is "Node Hierarchy: Child Weight".

Please has anyone done this, or have I missed something? Thanks for your help.

Comments

zeezhao’s picture

Status: Active » Fixed

Got it. Need to add relationship...

Status: Fixed » Closed (fixed)

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

joelschou’s picture

Status: Closed (fixed) » Active

Relationship has no effect for me and I still can't use Parent ID or Parent Title. What am *I* missing?

zeezhao’s picture

Status: Active » Closed (fixed)

1. When editing the view, in "Relationships" section, "add relationships" using the "+" sign and pick "Node Hierarchy: Parent Node ID" and then "Add".

2. Then in "Fields" section pick a field to add e.g. "Node: Title".

3. When you do, you will see a "Relationship" section under that field. Pick "Parent Node". This will make the "Node: Title" of Parent to appear in view.

4. Add other fields as normal.

Faramarz’s picture

Component: Code » Drupal/PHP Code

Thank zeezhao

You're a life saver.