Changes between Version 47 and Version 48 of TracTicketTemplatePlugin


Ignore:
Timestamp:
Dec 3, 2016, 8:09:00 AM (6 years ago)
Author:
figaro
Comment:

Further cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketTemplatePlugin

    v47 v48  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = Trac Ticket Template
     3= Create customisable ticket templates
    44
    55== Description
     
    1010 * Trac administrator can specify a general system level template '''default''' for all uncustomized ticket types.
    1111 * System level ticket templates are ticket type specific.
    12  * User level ticket templates (ie, my template) can be managed by common users.
     12 * User level ticket templates, ie my template, can be managed by common users.
    1313
    1414=== Changes in version 0.7
     
    2121 * New feature: support importing and exporting ticket_templates (by Russell Ballestrini).
    2222 
     23 * Trac administrator should define the template for all ticket types:
     24  * Login as administrator, open Admin -> Ticket System -> Ticket Template.
     25  * '''Load''' the template of each ticket type, modify them and '''apply changes'''.
     26 * After defined ticket template, normal user can create ticket using predefined template by '''change ticket types''' dropdown list items.
     27
     28'''The New Ticket page'''
     29
     30[[Image(NewTicketPage-v0.7.png, border=2)]]
     31
     32'''The Admin panel'''
     33
     34[[Image(AdminTicketTemplatePage-v0.7.png, border=2)]]
     35
     36About template parameters:
     37 * This plugin supports template parameters which can be specified by URL. For example:
     38 * The template:
     39 {{{
     40foo bar %(my_param)s baz qux
     41}}}
     42 * Call newticket:
     43 {{{
     44http://yourtrac/newticket?my_param=anything&owner=myname
     45}}}
     46 * Rendered:
     47  {{{
     48foo bar anything baz qux
     49}}}
     50 * And the owner field would be populated with myname by Trac's default convention.
     51 * '''Note''': be careful choosing the template parameter name to avoid conflicts with existing ticket field names.
     52
    2353See: '''ZoomQuiet''' ~ Collection KSPEG Trac hacking.
    2454
     
    5585python setup.py compile_catalog -f
    5686}}}
    57  1. If you want to install this plugin globally, that will install this plugin to the Python path:
     87 1. If you want to install this plugin globally, this will install this plugin to the Python path:
    5888  * `python setup.py install`
    5989 1. If you want to install this plugin to one Trac instance only:
    6090  * `python setup.py bdist_egg`
    61   * Copy the generated egg file to the Trac instance's plugin directory:
     91  * Copy the generated egg file to the Trac instance's plugins directory:
    6292  {{{#!sh
    6393cp dist/*.egg /srv/trac/env/plugins
     
    73103}}}
    74104  * Set `field_list` to choose which field should be included in template.
    75   * Set `enable_custom` to false will disable My Template, which default is true.
     105  * Set `enable_custom` to false will disable My Template, of which the default value is true.
    76106 
    77107== About i18n / l10n support
     
    117147Kindly provided by [[Image(https://ds0k0en9abmn1.cloudfront.net/static/charts/images/tx-logo-micro.png, link=http://www.transifex.net/, title=the open translation platform, valign=bottom)]]
    118148
    119 == Example
    120 
    121  * Trac administrator should define the template for all ticket types:
    122   * Login as administrator, open Admin -> Ticket System -> Ticket Template.
    123   * '''Load''' the template of each ticket type, modify them and '''apply changes'''.
    124  * After defined ticket template, normal user can create ticket using predefined template by '''change ticket types''' dropdown list items.
    125 
    126 || Screen capture of the //New Ticket// page =|| [[Image(NewTicketPage-v0.7.png, 70%)]] ||
    127 || Screen capture of the //Admin// panel =|| [[Image(AdminTicketTemplatePage-v0.7.png, 70%)]] ||
    128 
    129  * About template parameters:
    130   * This plugin supports template parameters which can be specified by URL. For example:
    131   * The template:
    132   {{{
    133 foo bar %(my_param)s baz qux
    134 }}}
    135   * Call newticket:
    136   {{{
    137 http://yourtrac/newticket?my_param=anything&owner=myname
    138 }}}
    139   * Rendered:
    140   {{{
    141 foo bar anything baz qux
    142 }}}
    143   * And the owner field would be populated with myname by Trac's default convention.
    144   * Note: be careful choosing the template parameter name to avoid conflicting with ticket field names.
    145 
    146149== Recent Changes
    147150