Search

How might I access a parameter that I've set up from another datasource within a custom datasource?

For example, I want to access $ds-project-view-individual in my datasource code.

Thanks for your help.

First make sure your second datasource depends on the first, by adding this param name to the dependencies array in the datasource constructor (an array of strings, including the $ symbol). This ensures correct execution order. Then in the second datasource's grab method you can retrieve this param value from the $param_pool variable that is passed to it.

Thanks, I was able to get this working with your direction and a coworkers help.

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