Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2012-08-02 14:16:28

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_query: all things Textpattern

Could you please show me the output of <txp:variable name="Features" /> for .../search?Color=Blue&Model=Honda&Price=25000&Features=XMRadio&Features=Moon+Roof?

Offline

#50 2012-08-02 14:29:43

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: etc_query: all things Textpattern

Can do, but where do I place this to show you — do I put it in my Search Form or my Search Results Form —-

Offline

#51 2012-08-02 14:33:56

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_query: all things Textpattern

Just before the <txp:etc_query /> block. You can do it with <txp:php>global $variable; dmp($variable['Features']);</txp:php>.

Offline

#52 2012-08-02 14:36:55

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: etc_query: all things Textpattern

What gets returned is the word Moon Roof

Offline

#53 2012-08-02 14:39:28

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_query: all things Textpattern

Then XMRadio is ignored? What it gives with the php code above?

Offline

#54 2012-08-02 14:42:54

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: etc_query: all things Textpattern

Yes. The only word that gets displayed when both items are selected is the second item which in this case is Moon Roof. If I just select XMRadio and not Moon Roof then thatt gets returned.

Offline

#55 2012-08-02 14:49:40

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_query: all things Textpattern

Could you try it on .../search?Color=Blue&Model=Honda&Price=25000&Features[]=XMRadio&Features[]=Moon+Roof? And please give me the exact output of <txp:php> above.

Offline

#56 2012-08-02 14:57:57

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: etc_query: all things Textpattern

The word Array pops up —-

Offline

#57 2012-08-02 16:51:20

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_query: all things Textpattern

The problem is that I know nothing about glz_custom_fields, and extract data with <txp:article_custom /> for multiple selection seems tricky. We need help from someone acquainted with glz_custom_fields: where to find its doc?

Offline

#58 2012-08-02 17:03:20

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: etc_query: all things Textpattern

I was hoping that we may be able to use something like this esq_glzcfvallist in combination to what we have to assist with the efforts or I was thinking possibly what we have in combination with this solution

Last edited by progre55 (2012-08-02 17:03:39)

Offline

#59 2012-08-02 17:12:57

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: etc_query: all things Textpattern

If you do not think the above are helpful — I can put a shout out and layout much better where things stand to see if anyone has some suggestions/guidance. Your assistance has been tremendiously helpful so please let me know.

Offline

#60 2012-08-02 17:36:45

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_query: all things Textpattern

I only need to know how and where glz_custom_fields stores its data, the rest is relatively easy. Does it add custom fields to textpattern table? How the multiselection values are represented?

Offline

Board footer

Powered by FluxBB