Changes between Version 1 and Version 2 of AddStaticResourcesPlugin


Ignore:
Timestamp:
Mar 1, 2010 5:17:08 PM (4 years ago)
Author:
bobbysmith007
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AddStaticResourcesPlugin

    v1 v2  
    55== Description == 
    66 
    7 A plugin that maps static resources into urls of your choice.  Thus if you wish to add a stylesheet or a javascript to an existing trac page, you can specify in the trac ini a regex that matches the urls of the pages and insert the resources.  
     7A plugin that maps static resources into urls of your choice.  Thus if you wish to add a stylesheet or a javascript to an existing trac page, you can specify in the trac ini a regex that matches the urls of the pages and insert the resources.  Just add your static resources to the plugins htdocs folder and install then fill out the trac.ini configuration values to enable your static resources on each page you wish. 
     8 
     9{{{ 
     10#!ini 
     11[static_resources] 
     12url-regex = list_of_files.js, and_style.css 
     13}}} 
     14 
     15== Installation Help == 
     16 1. Insert your static files into the 'addstaticresourcesplugin/htdocs' folder of the plugin before install 
     17 1. Install the plugin (either for a single project, or globally). See the details on how to install a trac plugin at: [trac:TracPlugins] 
     18  * '''No Really, GO READ [trac:TracPlugins]''' 
     19 1. Be sure that the plugin is enabled. Add "addstaticresourcesplugin.* = enabled" to trac.ini (in the [components] subheading). 
     20  * Alternatively, this can be enabled in the Web Admin section of the website as well 
     21 1. Reload/restart your HTTPD / other webserver / Tracd. That's it. 
     22 
     23 
     24== Related Plugins == 
     25=== TracTweakUiPlugin === 
     26This plugin is trying to accomplish much of what TracTweakUiPlugin is, however I had some goals that were not being met by TracTweakUiPlugin.  
     27 * Simple, I want to simply map a url to a javascript/stylesheet that should be included. 
     28 * Affect all tracs at once 
     29  * I have many tracs so specifying this once in the shared conf file is much nicer than once in each database 
     30  * Deployment of files should be simple and preferably in the egg we are already installing, rather than in a static location I need to keep track of and separately manage for each trac. 
    831 
    932== Bugs/Feature Requests ==