4 users online. Create an account or sign in to join them.Users

Search

Maybe this is a dumb question but I’m wondering how to include Javascript inside Symphony’s front-end. I already know the way of using the <xsl:text> tags. Is is also possible to include a .js document and avoid the <xsl:text> manner?

You mean a javascript link? Same way as you would with normal HTML.

so it is possible to put this code inside my xslt document?

<script type=”text/javascript” src=”http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js”></script>

You bet.

Also, you main not be aware of it but you can insert some XPATH or a parameter in there by the following:

&lt;script type="text/javascript" scr="{$workspace}/javascript/myfile.js">&lt;/script>

Which will allow you to reference javascript files you’re keeping in a folder in your Workspace folder.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details