I am using views to display all the pages associated with a taxonomy term. However I would like to filter out hte child book pages, I thought simply adding the filter Book depth set to less than 1-2 or whatever would handle it. However when I do this it makes my view only show book pages, while it does hide the child pages I still want all the other content and not JUST the books.

Is there a way to filter out only the book child pages? while at the same time displaying all the other content types that have pages associated with the node?

I have tried a number of variations of the filter and can't seem to figure out how to go about doing this. I am doing it on a block to display the latest content and I don't want to include the child pages of book as latest content only the book parent.

Thanks for any help.

Comments

merlinofchaos’s picture

Category: support » feature

Views currently does not have a way to do this.

J V’s picture

I would like this for 5.x too, its a much needed feature to show whole books...

merlinofchaos’s picture

It's doubtful Views for 5.x will ever get such a feature.

iq9’s picture

I'm suffering from this same issue.

miiimooo’s picture

subscribing (d6)

dawehner’s picture

Did you tryed to use Filter Book: Depth = 1. Here it works well.

miiimooo’s picture

Yes but then it only displays books and no other content (i.e. no pages that don't have child pages)

miiimooo’s picture

Status: Active » Needs review

I've rolled this into a module. Maybe could be done better and be a patch for views but it's working.

See http://drupal.org/project/views_child_remover

merlinofchaos’s picture

Status: Needs review » Active

Wrong status. 'needs review' means there is a patch.

NPC’s picture

Would like to be notified when this is solved (adding the Views Child Remover for now - great job! But I have too many modules on the site already, not sure if this will hurt it in the long run).

dawehner’s picture

This module will not hurt. There is nearly no code. Views would have to use nearly the same amout of code.

This could be fixed, as long noone wants to provide a patch to vWould like to be notified when this is solved (adding the Views Child Remover for now - great job! But I have too many modules on the site already, not sure if this will hurt it in the long run).iews.

esmerel’s picture

Status: Active » Postponed

If someone wants to take this up as a patch, great. Otherwise, it's postponed.

merlinofchaos’s picture

Category: feature » task
Status: Postponed » Active

Moving to active, unassigned task. This means it needs someone to work on it.

Ayesh’s picture

Great that this issue is considered in 2011 but worse that still no progress.

dawehner’s picture

You have always the possibility to assign it for yourself. Don't be shy.

spgd01’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev
Category: task » support

This is still an issue and the Views Child Remover Module is not for D7.

http://drupal.org/project/views_child_remover

Someone recommended:
"D7, Views 3 has an OR operator.

Just create a filter group, and set it to OR and just add 2 entries of book depth. One for "is equal to 1" and one for "is empty (NULL)"

http://drupal.org/node/1520168#comment-7101946

But it doesn't work. Any Ideas

MustangGB’s picture

Issue summary: View changes
Status: Active » Closed (outdated)