• MODX.com

    569 downloads

Selective Assets

Selective Assets is an extra by brandonhim, first released on 2015-02-20.

Package Description

Initial Release

Usage/Installation Instructions

Call your snippet within content, chunks, or templates.Required Parameters:&filePath = `your/asset.js`Set to the url of your JS or CSS file.

Optional Parameters:&runLocation = `head` or `body` (Default: Head)Specify which closing tag to inject link to.  CSS files will only be injected before closing head tag.

&preComment = `string`Declare your own comment to be place before the link.&noComment = `1` (Default: 0)Turn off comments by setting parameter to 1.Example Call:

[[SelectiveAssets? &filePath=`assets/javascriptlibrary.js` &preComment=`Page Specific Library` &runLocation=`body`]]This would insert library before html body tag.

Details

Developer(s)
brandonhim
Released
2015-02-24
First seen
2015-02-20
License
GPLv2
Supported databases
MySQL
Minimum MODX Requirement
2.2

Selective Assets Releases

Vendor Signature Released on
MODX.com 1.0.0-beta1 2015-02-24 (9 years ago)