cms_jquery tag

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.

CMS Made Simple™ Partner



   Purpose

This plugin allows you output the javascript libraries and plugins used from the admin.

   How to use?

Simply insert this tag into your page or template:

{cms_jquery}

Included defaults:

  • jQuery (jquery.min.js)
  • jQuery UI (jquery-ui.min.js)
  • nestedSortable (jquery.ui.nestedSortable.js)
  • jQuery json ( jquery.json.min.js)

   Available parameters

  • exclude - use comma seperated value (CSV) list of scripts you would like to exclude.
    'jquery.ui.nestedSortable.js,jquery.json.min.js'
  • append - use comma seperated value (CSV) list of script paths you would like to append.
    '/uploads/jquery.ui.nestedSortable.js,http://code.jquery.com/jquery-1.7.2.min.js'
  • cdn - cdn='true' will insert jQuery and jQueryUI Frameworks using Google's Content Delivery Netwok. Default is false.
  • ssl - use to use the ssl_url as the base path.
  • custom_root - use to set any base path wished. custom_root='http://test.domain.com/'
    NOTE: overwrites ssl option and works with the cdn option
  • assign - Assign the results to the named smarty variable.

   Syntax examples

{cms_jquery cdn='true' exclude='jquery.ui.nestedSortable.js' append='uploads/NCleanBlue/js/ie6fix.js'}