This repository has been archived by the owner on Feb 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
FAQs
smooth-graphics edited this page Mar 22, 2011
·
2 revisions
here are some frequently asked questions that may help you!
- jQuery plugins that are used on the whole page (and more than one page) should be placed in 'plugins.js' file. Just copy code from the plugin's file to the plugins.js file. put all other ressources belonging to the plugin relative to the 'plugins.js' to preserve path structure.
- If you want to use a jQuery plugin for just one page (e.g. a one-page gallery) please put the plugin-script to the js/libs/ folder and call the file with a custom template variable in MODX.
-
as we're using MODX as a CMS we need two steps of implementing a template. One on the site's root folder (where index.php of MODX CMS is located) and one in a specific template folder.
-
MODX Revolution doesn't describe where to locate these folders but it is best practice to have a file structure like this:
- /assets/ all your files for content
- /assets/templates/ main directory for templates and their files
- /assets/templates/subfolder/ directory for a specific template (if using more than one template)
- /assets/images/ where your images should be for being displayed on website