Search

Hi!

I attached symphony to an existing site. In this site there's a file .js that controls backroung slider. The code is like this:

// Slideshow Images                                                 {image : 'spa/images/slider_img_1.jpg'},                                                        {image : 'spa/images/slider_img_2.jpg'}

The "spa" folder is in "workspace". How can I attached this "link"? I try writing "{$workspace}", "workspace", but these don't work...

How can i attached these images to this js file?

Sorry for my poor English..

Hi Dave,

you are probably looking at doing some inline javascript. And updating the values in the XSLT itself from what it seems.

If that is the case you would have to use <xsl:value-of select='$workspace'/> from inside the inline javascript

Ok, thanks gunglien! I'll try!

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