wiki:TracTweakUiPlugin

Version 4 (modified by richard, 6 years ago) (diff)

--

Trac Tweak UI

SEE:ZoomQuiet ~ Collection KSPEG Trac hacking

Description

  • Its purpose is to implement a javascript deployment platform, which enable trac administrators to easy tweak trac pages by simply using javascript.
  • It can apply different javascripts to different pages by matching regular expression.
  • Support trac web admin

Bugs/Feature Requests

Existing bugs and feature requests for TracTweakUiPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out TracTweakUiPlugin from here using Subversion, or browse the source with Trac.

Configuration

  1. Uninstall Trac Tweak UI if you have installed before.
  1. Change to the directory containning setup.py.
  1. If you want to install this plugin globally, that will install this plugin to the python path:
    • python setup.py install
  1. If you want to install this plugin to trac instance only:
    • python setup.py bdist_egg
    • copy the generated egg file to the trac instance's plugin directory
      cp dist/*.egg /srv/trac/env/plugins
      
  1. Config trac.ini:
    [components]
    tractweakui.* = enabled
    
  1. Add following directory structure to trac environment's htdocs directory(using editcc as example):
    htdocs/tractweakui/
    

Or you can simply copy the htdocs/tractweakui/ in source to trac environment's htdocs directory.

Example

  • Admin Trac Tweak UI
    1. Enter trac's web admin, select "TracTweakUI Admin"
    2. Add url path(regular expression): /newticket
    3. Select "/newticket", then select filter "editcc"
    4. Click "Load Default", and edit filter javascript, then "Save"
    5. Now click "New Ticket" to test the "editcc" javascript plugin.
  • Screenshot

Recent Changes

[7413] by richard on 2010-01-18 10:27:14
fixed #4912, output the javascript directly into the script tag rather than in a script tag.
[6335] by richard on 2009-08-07 05:09:52
remove license.txt
[5514] by richard on 2009-04-13 03:00:22

#4912

  • unquote path_pattern, thanks for jason trahan.

Author/Contributors

Author: richard
Contributors:

Attachments (2)

Download all attachments as: .zip