[rt-users] new to creating templates

Chuck Danger cdanger2k at yahoo.com
Thu Feb 15 21:00:28 EST 2007


Hi-

I'm sorta new to creating my own templates and to RT in general.  One thing I would like to do is create a custom template that has some perl embedded in it.  The docs I found seem to indicate that I can use the Text::Template method of embedding perl, i.e., use '{}' to surround the code block, but that does not seem to work.  For a test, I just created a custom template with this (using Autoreplay as a example, but calling it "AutoTest":

Subject: AutoReply: {$Ticket->Subject}


Greetings,

This message has been automatically generated in response to the
creation of a trouble ticket regarding:
    "{$Ticket->Subject()}".

{print "This is a test\n";}

                        Thank you,
                        {$Ticket->QueueObj->CorrespondAddress()}

-------------------------------------------------------------------------
{$Transaction->Content()}

When I receive the reply from this template, where it should be printing out "This is a test", I just get "main::STDOUT".

Thanks-
Chuck C.




 
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070215/bdd1fe36/attachment.htm>


More information about the rt-users mailing list