Search

Currently observing strange Symphony behaviour and hope for your help.

I'm trying to implement a filter by parameters in site's catalogue. I have a group of checkboxes, where users can select categories neccessary for them. Still, all this checkboxes relate to a one field.

As a result of form submission I receive 3 different params instead of one:

$url-s-estate-type.1    '27'
$url-s-estate-type.2    '28'
$url-s-estate-type.3    '29' 

Could you advice me how is it possible to join this values in one variable (i.e. $url-s-estate-type)?

Overall aim of this is to filter objects by this values: 27 OR 28 OR 29.

It's seems to be normal behavior, because Symphony transforms arrays, presented in query, into such a parameters.

In similar situation I used javascript to combine values of selected checkboxes into one comma-separated string (will be '27,28,29' in your case) and put it in single hidden input.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details