Selective Assets

selectiveassets

  • By brandonhim
  • Latest release February 24, 2015 (11 years ago)

About

Initial Release

Installation & usage

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.

At a glance

MODX 3 compatibility unknown. Based on our testing and community reports where available.

  • Developer brandonhim
  • Latest release February 24, 2015 (11 years ago)
  • First seen in SiteDash February 20, 2015 (11 years ago)
  • License GPLv2
  • MODX support 2.2+
  • Databases MySQL

Releases 1 indexed release

Changelog
MODX.com

1.0.0-beta1

February 24, 2015

11 years ago

—