Hi,

I have the following view (https://www.drupal.org/files/issues/view_over_panel_noparentterm.txt) and it shows the following, see image (https://www.drupal.org/files/issues/views_content_parentterms.jpg) by adding termnames as arguments to the url.

This is great, but I would very much like to hide, not show, the parent terms of the vocabularies as circled around; Frankrijk (France) and Frankrijk - alle trajecten (France all trajects)
How can I hide the top-parent terms in this content-view please?
I tried filtering on parent-term = 0, like suggested on several places, but no go..

Thanks a lot in advance for your reply
Greetings, Martijn

Comments

Summit created an issue. See original summary.

summit’s picture

Hi,

I forgot to explain the working of the view. I have lots of nodes with terms like country, province, city and trajects like highway or cultural and categories like budget hotel or luxury hotel.

When I trigger the page view overterm with arguments say; 1) budget, 2) france I got a nice looking view with all correct nodes and terms underneath
overterm/budget/frankrijk <== is france.

But I do not want to see the top parent terms france (franrkijk), and Frankrijk - alle trajecten (France all trajects) on the page.
How to remove those from the list please?

Thanks again for your reply in advance.
Greetings, Martijn

summit’s picture

Hi,

I tried this one: http://drupal.stackexchange.com/questions/96340/view-showing-only-taxono...
But not working, because I need two termnames. They are as arguments in the url..

greetings, Martijn

dishabhadra’s picture

Hi,

If you are showing content-view of some content type which having taxonomy as a term reference then in view you want to show only child term then add filter of taxonomy term:parent term to not equal to 0 then it will give you the proper result.

dishabhadra’s picture

Hi,

If you want to create view which take parent term id from URL and you want to display only child term then add filter of Parent term >0.

summit’s picture

Hi,
I think my problem is that the parentterm itself is also connected as term to the node.
So what I need is to be able to hide certain specific terms from the termlist.
Like Frankrijk (France), Duitsland (Germany) etc..

Could this be the problem that parent term > 0 is not working in my case?
Greetings, Martijn

mustanggb’s picture

Status: Active » Closed (outdated)

Closing this as outdated to tidy up a bit around here. If you're still having problems with the latest release please create a new issue.