thanks for the answers.

I found another solution, the new button is added with a javascript :

  var ni = document.getElementById('mainnav').firstChild.nextSibling;
  var newli = document.createElement('li');
  newli.innerHTML = '<a href="/trac/newticket?bug=1">Report Bug</a>';
  ni.appendChild(newli);

in the template :
<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
req.environ['QUERY_STRING']=='bug=1' and not req.args.has_key('preview')">
<textarea py:match="[EMAIL PROTECTED]'field-description' and
@class='wikitext']"  py:attrs="select('@*')">= Steps =

= Expected results =

= Observed results =

= Issue =

</textarea>
</span>

</html>

Thanks again for the support.


2008/5/21 Erik Andersson <[EMAIL PROTECTED]>:

> Another suggestion is to link the newticket button to a wiki page where you
> can add all links necessary.. Like it's done on t.e.o.
>
> Cheers / Erik
>
>
> On Tue, May 20, 2008 at 2:04 PM, Noah Kantrowitz <[EMAIL PROTECTED]> wrote:
>
>>
>> On May 19, 2008, at 12:18 PM, xavier wrote:
>> >
>> > Hi all,
>> >
>> > I wish to have 2 different buttons for creating a ticket :
>> > - New Bug
>> > - New Feature
>> >
>> > each 'button' use a different template.
>>
>> You would need to make a plugin that implements the
>> INavigationContributor and IRequestFilter APIs probably.
>>
>> --Noah
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to