tags:

views:

18

answers:

0

I have taxonomy structure like:

TEAM -> INTERNATIONAL -> AUSTRALIA - Further Sub-terms of AUSTRALIA are :
-> ARTICLES - (with Nodes) Story 4, Story 5
-> PHOTOS - (with Nodes) ImageGallery1
-> DOMESTIC-TEAMS - (with Nodes) Story6, Story7.

Term AUSTRALIA has direct nodes: Story1, Sory2, Story3 Now when I am showing nodes in a block display thru Views: Field- Node title ; Filter - Node:publihsed, taxonomy-vocabulary:team ; Argument: taxonomy term id with

default php code:

if (arg(0) == 'taxonomy' && arg(2) != '') {
  return arg(2);
}

The block on the term page (Australia) is showing all the stories(nodes) - of Australia and also of children terms like ARTCILES,PHOTOS, DOMESTIC TEAMS — this way:

story1 | story2 | story3 | story4 | story5 | ImageGallery1 | story6 | story7.

But I want to show the nodes which are just under Australia like:

story1 | story2 | story3.(EXCLUDING nodes of children and parent terms

Or even better : a list like - Story1 | Story2 | Story3 | ARTCILES | DOMESTIC-TEAMS (which is a mix of Nodes and terms under the specific term AUSTRALIA). That is to say, how to show only nodes which are under specific term and not to show nodes which are under under child and parent terms.

[2] Second thing is: If I click on any node in the block, it opens the node page under that term and hence the block disappears as it is guided by term id argument. I want this block with same listing for a particular term should remain there even on node pages.

I feel that to do such customisation, a block with direct php snippet would be better than doing it thru views. Whatever the case maybe, plz help.