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
Comment #1
merlinofchaos commentedViews currently does not have a way to do this.
Comment #2
jnvsor commentedI would like this for 5.x too, its a much needed feature to show whole books...
Comment #3
merlinofchaos commentedIt's doubtful Views for 5.x will ever get such a feature.
Comment #4
iq9 commentedI'm suffering from this same issue.
Comment #5
miiimooosubscribing (d6)
Comment #6
dawehnerDid you tryed to use Filter Book: Depth = 1. Here it works well.
Comment #7
miiimoooYes but then it only displays books and no other content (i.e. no pages that don't have child pages)
Comment #8
miiimoooI'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
Comment #9
merlinofchaos commentedWrong status. 'needs review' means there is a patch.
Comment #10
NPC commentedWould 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).
Comment #11
dawehnerThis 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.
Comment #12
esmerel commentedIf someone wants to take this up as a patch, great. Otherwise, it's postponed.
Comment #13
merlinofchaos commentedMoving to active, unassigned task. This means it needs someone to work on it.
Comment #14
ayesh commentedGreat that this issue is considered in 2011 but worse that still no progress.
Comment #15
dawehnerYou have always the possibility to assign it for yourself. Don't be shy.
Comment #16
spgd01 commentedThis 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
Comment #17
mustanggb commented