Roger Oberholtzer wrote:
> I know this question has been asked in a similar context. But I think
> I am asking in a different context. I have two things I would like to
> do: 
> 
> 1.
> 
> When an existing ticket is being rendered to be shown in the browser,
> is it possible to make a link reference in the rendered page that
> uses the ticket number as part of the link? I do not mean when the
> ticket is created, since the number does not exist. I would like to
> point to some per-ticket place. The references are like
> [//~data/TracData/ticket/NUM], where NUM is the ticket number. I
> would like NUM replaced by the ticket number.
> 
> Where would I begin to look to add something like this?

Do you want a $NUM like $USER?  I can think of several variables I'd
like to be available in the ticket context like $MILESTONE, $NUM,
$COMPONENT, etc.  But $NUM would be a great start!

> 2.
> 
> When a ticket is created (the user has saved a new ticket), I would
> like to have a directory in the Trac system's file system created. Is
> there a hook for doing this sort of thing?
> 
> I have yet to modify/add to Trac at this level. Maybe this is the
> time...

Couldn't you register a ticket change listener?  Wouldn't it know if the
action was "create"?  (I'm a little out of my depth here but I thought
that's how it works.)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.


Reply via email to