Guest
19 Nov 2013 15:27

I feel that I am very close to solving this, but I can't seem to be able to create a pre-filtered link using the parent relationship field.

Here is my existing query that works.

 http://multi3.cns.utexas.edu/component/cobalt/category-items/1-directory/16-molecular-biosciences?option=com_cobalt& ;task=records.filter&ion_id=1&filter_name[0]=filter_cat&filter_val[0]=16&filter_name[1]=filter_k00d30fd9c5f095b1aa56604535dccad8&filter_val[1]=Faculty&Itemid=1224

I want to add the following filter to the query

&filter_name[2]=filter_k32b7ee4345510ba2cb5bd39bd306fe17&filter_val[2]=1265

However when I add this filter it does not work. Here is what I've done.

  1. Verified the field key is correct

  2. Made the field searchable and used the re-index tool

  3. Ran the re-index tool on the Type for both parent and child

  4. Tried to remove all of the filters but the new one I am trying to add. This did not work.

Am I missing something? Any ideas? Thanks.

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
20 Nov 2013 00:53

You want to create link that will show all children of parent?

  1. Set only 1 child in the list of children

  2. Set show all button to yes

  3. Set show list as prefiltered list

  4. Open article and you will see link.

  5. Copy link and investigate it.

Prefiltered list link may be little bit more complex then other fields.


pepperstreet VIP
Total posts: 3,837
20 Nov 2013 01:17
  1. Set show list as prefiltered list

I think I have asked this before, but what does this parameter do? What is the difference in those two options?


Sergey
Total posts: 13,748
20 Nov 2013 02:18

When you click show all children or parents when there are more then shown in related record there are 2 ways to display that list.

  1. Through prefiltered list. It is like you just filtered by related record.

  2. Another through special URL that will show list without filter warning. This method usually should be used when you do not want users to access related section to see all records only see list of certain parent.


Sergey
Total posts: 13,748
20 Nov 2013 03:07

For example you make discussions. But there is no discussion section on the site. I mean you do not allow user to see all discussion of all articles. Only what to show discussions of particular article.


Guest
21 Nov 2013 10:49

Sorry, I am unclear what you mean by this?

  1. Set only 1 child in the list of children

Here is my attempt to clarify what I am doing.

My original query pulls back People Type based on 2 filters.

  1. Is the Category 16 (Molecular Biosciences)

  2. Are they set as Faculty (Multi-select field)

In my Cobalt setup People Type and Research Area Type can be related. In addition to my original 2 filters I want to pull back People who have Selected 1265(This is the ID for Biochemistry) as one of their Research Areas.

I checked the stored values in the database and it seemed like they were stored the same way as a multi-select field.


Sergey
Total posts: 13,748
22 Nov 2013 01:10

Why do you have

&filter_name[2]=filter_k32b7ee4345510ba2cb5bd39bd306fe17&filter_val[2]=1265

it should be

&filter_name[0]=filter_k32b7ee4345510ba2cb5bd39bd306fe17&filter_val[0]=1265

Forget what I have said. Everything have to work this way.

Do you have multitype section?

Powered by Cobalt