I have view with 2 page displays in it with same path, they differ only arguments:

In First
argument - Taxonomy: Term ID (with depth)
Depth - 0
Validator:

$checkterm = taxonomy_get_term($argument);
if ($checkterm->description != "exp") return "TRUE";

In Second
argument - Taxonomy: Term ID (with depth)
Depth - 1
Validator:

$checkterm = taxonomy_get_term($argument);
if ($checkterm->description == "exp") return "TRUE";

As i see when first display can't pass validate code, second display don't checked. Is right?

Comments

temp’s picture

I have another question in this topic:
I make Attachment display, they show same results like Page display, but with depth=1 (page display results with depth=0).
I have problem with cache system - when views generate some page - data have been cached, and in other pages Attachement display output data from cache. This data same like page that have been cached in first time, why Views store this page data same for all pages, but not for every page different cache?

iamjon’s picture

Status: Active » Postponed (maintainer needs more info)

temp did you every find a solution for this? if yes please update so others can benefit.
if not please check the submission guidelines for the type of information to provide so we can better help you.

please provide and export of your view, and simple step by step replication instructions.

temp’s picture

Assigned: iamjon » temp
Status: Active » Postponed (maintainer needs more info)

Now i use this view without cache, (i use boost caching system).

To repeat this problem we need:
hierarchical taxonomy tree with category (term ID's is argument for our view)
nodes with any fields that can displays through view module, and assigned to various term of tree that don't have any children (end level of tree) see example:

-Computers:
--Notebooks
---Protected Case
---TouchScreen
---3D display
--Desktop
---Monoblock
---Standart case
----Vertical case
----Horizontal case

we can use this terms:

---Protected Case
---TouchScreen
---3D display
---Monoblock
----Vertical case
----Horizontal case

Now we need create table node view to display fields of our nodes, with enabled caching with argument setting like example below:

Taxonomy: Term ID (with depth)
Title: %1
Breadcrumb:
Action to take if argument is not present: Display empty text
Wildcard:
Wildcard title:
Validator: basic validation
Action to take if argument does not validate: Hide view
Depth: 0

Next, lets create attachement display of this view same like page display, differ only arguments settings:

Taxonomy: Term ID (with depth)
Title: %1
Breadcrumb:
Action to take if argument is not present: Display empty text
Wildcard:
Wildcard title:
Validator: PHP code:
 $check_term = taxonomy_get_term($argument);
 if ($check_term->description == "exp") return "TRUE";
Action to take if argument does not validate: Hide view
Depth: 1

Now assign "exp" flag to description field of some term that have children for example Notebooks term.
When we look at page that generated with our view with argument and "exp" in field description, and after that open some other page - we will see attachment display from previous output.

http://drupal.org/files/view-export.txt - my view export - is too complex - manual creation is simplest way

iamjon’s picture

Assigned: temp » iamjon
Status: Postponed (maintainer needs more info) » Active

changing status and assigning to myself for followup

R.Hendel’s picture

Assigned: temp » iamjon
Status: Postponed (maintainer needs more info) » Fixed

Hi, is this still active for you?
I would fix this issue to clean queue. Please reopen it, if you want to work further on it.
Otherwise it would be closed automatically after two weeks.

R.Hendel’s picture

Issue tags: +dvcs11

forgot to tag with dvcs11

Status: Fixed » Closed (fixed)
Issue tags: -dvcs11

Automatically closed -- issue fixed for 2 weeks with no activity.