Search

I have a field extension in the works that I'd like to add to the param pool.

Any pointers as to how you add the field values to the param pool for DS Chaining?

The complexity arises from the fact that the field value is currently a json encoded string, which will need to be converted to an multidimensional array on the front end so that the output becomes a series of DS params:

'{"filter-one":"10,20","filter-two":"45,47"}'

becomes a series of parameters:

<filter-one>
 <item>10</item>
 <item>20</item>
</filter-one>
<filter-two>
 <item>45</item>
 <item>47</item>
</filter-two>

When the filed is output to the param pool.. Where's best to look at code examples of similar approaches? or am I just plain weird.. #usually the latter.

If you're looking for just an example of adding values to the parameter pool itself, see here.

Not sure about the other requirements.

Got that bit thanks. Just wondering if it's possible to do it with instances of fields... or if I'm actually going about it the wrong way and the DSRetrievalSQL function should be taking care of this.

Managed to get the Entry output as XML fine. Next step is finding a way to group all results of entry values into one merged array for use as chained Datasource...

Let the fun begin.

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