Allows users to change the css/js files of this plugin with wikitext
Compatible with DokuWiki
Greebo
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
The intended use of this plugin is to manage the css/less/js files that the wiki reads from the plugin folder.
By default the configuration is empty.
WARNING this plugin can be abused to change other files, use it with care
Install the plugin using the Plugin Manager and the download URL above, which points to the latest version of the plugin. Refer to Plugins on how to install plugins manually.
I use it to:
WARNING I recommend you restrict page edits with ACL when you allow script.js
See README for more examples.
This example creates, replaces, or deletes these files when the page wiki:styling is saved:
Configuration:
wiki:styling=/^(all|screen|print|speech)\.(css|less)$/, wiki:styling=/^script\.js$/
Wikitext of wiki:styling:
<code css all.css> /* placed in <stylingpages_plugin_dir>/all.css */ #dokuwiki__site::before { content: 'Hello from stylingpages'; color: black; background: white; border: 1px solid red; } </code> <code css all.css> /* combined with the code above (same file) */ #dokuwiki__site::after { content: 'Hello from stylingpages'; color: black; background: white; border: 1px solid red; } </code> <code javascript script.js> /* placed in <stylingpages_plugin_dir>/script.js */ alert('Hello from stylingpages'); </code>
Create an issue if you want something.
No FAQ entries yet.
I prefer issues, but you can also leave messages here. — flaviojs 2018-10-06 17:05