Changes between Version 7 and Version 8 of TracTicketValidatorPlugin
- Timestamp:
- Nov 11, 2015, 10:11:18 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketValidatorPlugin
v7 v8 4 4 5 5 == Description 6 7 This plugin allows you to perform validations on form input fields in your Trac pages. 6 8 7 9 Key features: … … 16 18 17 19 If you have any issues, create a 18 [ http://trac-hacks.org/newticket?component=TracTicketValidatorPlugin&owner=richardnew ticket].20 [/newticket?component=TracTicketValidatorPlugin new ticket]. 19 21 20 22 [[TicketQuery(component=TracTicketValidatorPlugin&group=type,format=progress)]] … … 22 24 == Download 23 25 24 Download the zipped source from [ download:tracticketvalidatorplugin here].26 Download the zipped source from [export:tracticketvalidatorplugin here]. 25 27 26 28 == Source 27 29 28 You can check out TracTicketValidatorPlugin from [ http://trac-hacks.org/svn/tracticketvalidatorplugin here] using Subversion, or [source:tracticketvalidatorplugin browse the source] with Trac.30 You can check out TracTicketValidatorPlugin from [/svn/tracticketvalidatorplugin here] using Subversion, or [source:tracticketvalidatorplugin browse the source] with Trac. 29 31 30 32 == Example 31 33 32 34 1. Validate anonymous author email address and make the comment a required input: 33 {{{ 34 #!ini 35 {{{#!ini 35 36 [components] 36 37 ticketvalidator.* = enabled … … 46 47 }}} 47 48 48 '''Note''': when validating more than one field, use a list after "validates =".49 '''Note''': when validating more than one field, use a list after "validates =". 49 50 50 51 2. There is a very straightward implementation of parent/child tickets: just prepend parent ticket number to the child ticket summary. For example, if the parent ticket 234 summary is {{{<#0>A parent ticket}}}, then the child ticket summary will be {{{<#234>A child ticket}}}. We can perform a validation as follows: 51 {{{ 52 #!ini 52 {{{#!ini 53 53 [components] 54 54 ticketvalidator.* = enabled