[rt-users] Template tags?

Smylers smylers at gbdirect.co.uk
Thu Dec 5 04:37:27 EST 2002


Phil Homewood wrote:

> Lynoure Rajam?ki wrote:
>
> > Is somewhere a document which explains the tags (e.g.
> > $Ticket->Subject ) available for making a template?
>
> No, but perhaps there should be a pointer. :-)
>
> $Ticket refers to the RT::Ticket object for the current ticket.  ``man
> RT::Ticket'' should give you an idea of all the methods accessible via
> that object (of which Subject is one.)

The documentation only documents the 'difficult' things you can do with
an RT::Ticket object.  For retreiving 'simple' pieces of information
about a ticket, you also needs to know that RT::Ticket inherits from
DBIx::SearchBuilder and corresponds to a record in the Tickets table in
the database.

So $Ticket->Subject works because Tickets.Subject is in the DB.  If you
have a quick look at that table you'll be able to work out that things
like $Ticket->Status and $Ticket->Due and also possible.

Smylers
-- 
GBdirect
http://www.gbdirect.co.uk/




More information about the rt-users mailing list