Search

Here’s what I have done and what I’m trying to do.

I have a data source and a template that displays a list of jobs. There is a form on the front end that posts to itself and applies data source filters. What I’m now trying to do is dynamically populate elements of the form. More specifically, I have created another data source that I would like to use to populate the drop down lists in the form.

I’ve created my first utility and I was wondering how I do the following.

  1. Get access to the data source from within a utility.
  2. View the generated XML from a data source that doesn’t have a page attached to it. I need to see it in order to know how to handle it in the utility I’m writing.

Any help much appreciated.

You’ve got to make sure that the data source is attached to the page. That’s the only way to get its contents through to the front end. And then you’ve got to import the utility from that page’s template:

 <xsl:import href="../utilities/your-utility.xsl"/>

I got it to work in the end and it was much easier than I thought. Thanks anyway.

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