Skip to content

Instantly share code, notes, and snippets.

@muracms
Created November 7, 2013 17:47
Show Gist options
  • Select an option

  • Save muracms/7358775 to your computer and use it in GitHub Desktop.

Select an option

Save muracms/7358775 to your computer and use it in GitHub Desktop.
variables.pluginConfig
pluginConfig.addToHTMLHeadQueue("htmlhead/inc.cfm");
$.loadJSLib();
pluginConfig.addToHTMLHeadQueue('htmlhead/inc.cfm');
pluginConfig.addToHTMLFootQueue('htmlfoot/inc.cfm');
getPlugin({pluginID | moduleID | package})
var setting = pluginConfig.getSetting({setting name});
$.getPlugin({pluginID | moduleID | name | package})
// in the following statement, true = purge application
var pApp = pluginConfig.getApplication(true);
pApp.setValue('myFavoriteColor', 'blue');
pVar = pApp.getValue('myFavoriteColor');
var pSession =variables.pluginConfig.getSession(true); // true = purge session
pSession.setValue('myFavoriteColor', 'pink');
pSession=pSession.getValue('pink');
<cfcsript>
rsSites=getPlugin('myPlugin').getAssignedSites();
</cfscript>
<cfoutput>
<cfloop query="rsSites">
#rsSites.siteid#<br/>
</cfloop>
</cfoutput>
pluginConfig.addToHTMLHeadQueue({path});
<link href="#pluginPath#css/contributor_tools.css" type="text/css" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment