In the snippet code in the manager, add these lines somewhere after the config file is included (I put it at line 103, or right after the line that loads the iebuttonfix.js)
$modx->regClientStartupScript('assets/snippets/webloginpe/js/ieButtonFix.js');
// add optional stylesheet - sottwell Aug 2009
if(isset($stylesheet)) {
$modx->regClientCss($stylesheet);
}
Now you can specify a stylesheet in the snippet’s config file or the snippet parameters if you prefer. Personally, I used the main WebLoginPE snippet’s configuration to set it, along with a few other global parameters that are subject to occasional change, so I don’t have to fiddle with them again in the config files.
&stylesheet=Stylesheet;text;assets/templates/templatename/wlpe.css &groups=Web Groups;text;clients &customTable=Custom Table;text;client_attributes &customFields=Custom Fields;text;firstname,lastname,companyname,title ¬ify=Notify Addresses;text;[email protected],[email protected]