Dear forum members,

for some days I'm trying to recreate a functionality of Views I foolishly overwrote. Only one thing is for sure; it worked without PHP coding, for I'm a very, very unskilled coder with PHP to tackle something like that (which doesn't mean this state can't be improved...)

I'm using booknavigation and taxonomy.

The Hierarchy of the booknavigation is the same as the one for the taxonomy:

a
-aa
--aaa
---[here you find the content related to the Child-Page aaa resp. to the term aaa content]
--aab
---[here you find the content related to the Child-Page aab resp. to the term aab content]
--aac
---[here you find the content related to the Child-Page aac resp. to the term aac content]
--ab
--aba
---[here you find the content related to the Child-Page aba resp. to the term aba content]
--abb
---[here you find the content related to the Child-Page abb resp. to the term abb content]
--abc
---[here you find the content related to the Child-Page abc resp. to the term abc content]

[this pattern is to be continued up to Page c resp. term c]

At that time, I achieved to build a View which returned the following book children resp. term children when clicking on the booknavigation resp. taxonomy term aa:
aaa
aab
aac.

Likewise: when clicking ona
aa
ab
ac
was returned.

Additionally I somehow made this view work as block in the content region of a node (e.g. in the Content region of the Bookpage resp. the Content related to the term aa).

Only one thing is clear: somehow I correctly utilized a contextual filter. I assume, a contextual filter is in the Views of Drupal 7, what is called an argument in the Views of Drupal 6.

I searched the Web and in some Drupal-7 books (which in many cases still show the Views version of Drupal 6, which is a little bit irritating me), but to no avail.

I would be glad to learn what I did (astoundingly) right at that time.
(And one thing I already learned: Deploy Screen Copy More Often, Stupid!)

Thank you very much for your patience reading so far.

Comments

heather’s picture

I'm sorry, I'm having trouble understanding your model. The layout of the structure is hard to decipher. Do you have a screenshot?

Yes - "contextual filters" is "arguments".

Also - in addition to "screen copy" you also also export Views code and keep copies of it that way. You can also "clone" views when they are in a state you like and continue to develop them.

So let's see...

You should maybe practice some exercises just using "contextual filters" in some simpler examples, to build an understanding of it. Don't boil the ocean, as they say.

I'm sorry I'm not much help (since I can't understand the model).

GeorgHuber’s picture

Dear heather,

thank you very much for your reply. You are right, I didn't work out the pivotal problem.

Yesterday I ran a lot of trial-and-error Views-queries but none really performed as I hoped.
But I think the whole problem can be broken down to three singular and disjunct questions:

.
1) Finding "my" parent: If taxonomy term a is the parent of the taxonomy terms aa and ab, how must a Views-query be formulated to yield a if I use ab as an argument (%1)?

(It seems possible, for in "contextual filters" and "relationships" some notions include the word "parent".)
______________________________________________________________________

2) Finding all "my" children: If taxonomy term a is the parent of the taxonomy terms aa and ab, how must a Views-query be formulated to yield aa and ab if I use a as an argument (%1)?

(It seems possible, for in "contextual filters" and "relationships" some notions include the word "parent". The relationship "parent" can be evoked in different contexts within Views but I haven't worked out where to utilize it.)
______________________________________________________________________

3) Finding all "my" siblings: If taxonomy term a is the parent of the taxonomy terms aa and ab, how must a Views-query be formulated to yield ab (and aa) if I use aa as an argument (%1)?

(This query seems almost impossible to do with one Views-query. Is it possible to use one Views-query as a starting point for the next? How do I go about to achieve such a stepwise sequence of Views-queries?)
______________________________________________________________________
.

I hope this clarifies and structures my problem.

Best regards!

SmOOThCRiminal’s picture

Hello,
I have created a view that contains all the items of a custom content type, I wanted to use the contextual filters by id of the item to display all the items except the one who has the id passing in URL.
I tried to check 'Display all results for the specified field ' and add % in the exception value, but I still had all the items displayed.
any one can help?