[rt-users] how to load templates
Todd Chapman
todd at chaka.net
Wed Apr 5 09:05:16 EDT 2006
On Wed, Apr 05, 2006 at 10:46:54AM +0100, Roy El-Hames wrote:
> Hi;
> The system: rt-3.4.4 on gentoo with apache2, dbix 1.33, mod_perl2 and
> mysql 4.
> The idea : certain staff members load update.html with a drop down so
> they can choose a pre-prepared updates, my thinking have these updates
> as templates.
> Created a customised Update.html , and I need to load the templates to
> it, but I am unable to do that , my code along the lines :
> use RT::Template
> my $Template = " A Template Name";
> my $Templates = RT::Template->new($RT::SystemUser);
> $Templates->Load($Template);
> $ARGS{UpdateContent}= $Templates->Content() ;
>
For "pre-prepared updates" you should install RTFM. Done!
http://bestpractical.com/rtfm/
-Todd
More information about the rt-users
mailing list