[rt-users] how to load templates

Roy El-Hames rfh at pipex.net
Wed Apr 5 06:17:23 EDT 2006


For those that may need to know , I changes
my $Templates = RT::Template->new($RT::SystemUser);
to $Templates = new RT::Template($RT::SystemUser);  and that worked 
..strange but true.
Thanks;
Roy

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() ;
>
> The above is not working for me .. can anyone help please..
> Roy
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
>
>
> We're hiring! Come hack Perl for Best Practical: 
> http://bestpractical.com/about/jobs.html
>




More information about the rt-users mailing list