On Monday, March 10, 2014 9:03:21 AM UTC-5, RjOllos wrote:
>
> On Friday, March 7, 2014 8:35:08 AM UTC-8, ONeal Freeman wrote:
>>
>> I realize the template plugin should do this but I am having issues with 
>> it right now and I have a deadline to meet so I am also pursuing other 
>> avenues.
>>
>> Has anyone gotten this to work to add multiple lines to the default 
>> description?
>>
>> <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:py="
>> http://genshi.edgewall.org/"; py:strip=""> <!-- Custom match templates go 
>> here --> <span py:if="req.environ['PATH_INFO']=='/newticket' and not 
>> req.args.has_key('preview')"> <textarea 
>> py:match="textarea[@id='field-description' 
>> and @class='wikitext']" py:attrs="select('@*')"> Your custom description 
>> goes here. </textarea> </span> </html>
>>
>> From: 
>> http://www.nextthing.org/archives/2008/05/02/adding-default-descriptions-to-trac-tickets
>>
>
> I hope we can continue debugging the issue with your Trac instance and 
> TracTicketTemplatePlugin, but in the meantime, putting the following in 
> template/site.html should allow you to set a ticket template:
>
> <html xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:xi="http://www.w3.org/2001/XInclude";
>       xmlns:py="http://genshi.edgewall.org/";
>       py:strip="">
>   <py:if test="req.environ['PATH_INFO']=='/newticket' and not 
> req.args.has_key('preview')">
>     <textarea py:match="textarea[@id='field-description']" 
> py:attrs="select('@*')">
> Your custom description goes here.
>
> This is the second line, preceeded by a line of whitespace.
>     </textarea>
>   </py:if>
> </html>
>  
>
Well I spoke too soon.  I pasted your code snippet in and it works fine. 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to