1283 Posts
Bucklash
7 years ago
3
Topic

Hi folks

PLEASE IGNORE THIS POST .... I'm making progress,  and will alter this post as needed

Any one able to help me on this:

1

I have a content type ['files'], which stores a value using fieldx. 

The value stored is the id of an article from category with id of 12

So far, so good.

 

2

In my search form I want to filter ['files'] based on the id stored in fieldx.

At the minute I show the list of available articles that I can select from using select dynamic: 

Table: #__content
Options Name: title
Options Value: id
Where: catid=12 // the catid of the articles available to select in the fieldx

I have tried with storage set to none, and with storage set to CUSTOM | Article | articles_fx[articles]

  

3

In my search form I am unable to get the filter applying

Bucklash

Get a Book for SEBLOD
67 Posts
Bonitto
7 years ago
1
Level 1

Any luck with this m8?

1283 Posts
Bucklash
7 years ago
0
Level 2

Hi

Follow me!

As far as I understand it, it is like this:

Create field {"name: my_field", "storage: none"}

Create fieldx {name: my_fieldx", "storage: custom|'object ie article'|my_fieldx[my_field]"}

The above fields are for your forms  

Then in your search view create a new field the same as 'my_field' but with the storage the same as 'my_fieldx'.

In your Match + Stage select exact and choose the collection ie the  fieldx

In your list or item view display the my_fieldx and apply a typo on it or do variation override to manipulate further

Jon

4229 Posts
Kadministrator
7 years ago
0
Level 1

The only way I found for fieldX to always work in searches is to use

  • Custom - Article - someting for fieldX and
  • Custom - Article - someting[fieldname] for child field (the one called by FIeldX).

P.S. this is not official recommendation from Octopoos, but sometimes theory and practice diverge ...

Get a VIP membership