[rt-users] Sample for RTFM::Extension::ArticleTemplates using inside a template ?

2011-02-24 Thread Daniel Schwager
Hi, we added our company signature (queue based) to 3 (Correspondence, Autoreply and Resolve) templates. Is it possible to move the 3 times duplicated signature code to a RTFM article and include this article in my templates, like { $Transaction-GetRTFMArticle(3) } So, the maintenance will

Re: [rt-users] Sample for RTFM::Extension::ArticleTemplates using inside a template ?

2011-02-24 Thread Kevin Falcone
On Thu, Feb 24, 2011 at 10:31:28PM +0100, Daniel Schwager wrote: Hi, we added our company signature (queue based) to 3 (Correspondence, Autoreply and Resolve) templates. Is it possible to move the 3 times duplicated signature code to a RTFM article and include this article in my

Re: [rt-users] Sample for RTFM::Extension::ArticleTemplates using inside a template ?

2011-02-24 Thread Daniel Schwager
It does not let you dynamically load an article from a Template, you could do that without the extension just by writing code in normal RT Templates. Sure. But I would not like to repeat myself in 3 templates (3 times the same signature/code in 3 templates) - for one queue. I would like to

Re: [rt-users] Sample for RTFM::Extension::ArticleTemplates using inside a template ?

2011-02-24 Thread Kevin Falcone
On Thu, Feb 24, 2011 at 11:56:18PM +0100, Daniel Schwager wrote: It does not let you dynamically load an article from a Template, you could do that without the extension just by writing code in normal RT Templates. Sure. But I would not like to repeat myself in 3 templates (3 times the

Re: [rt-users] Sample for RTFM::Extension::ArticleTemplates using inside a template ?

2011-02-24 Thread Daniel Schwager
my $rtfm = RT::FM::Article-new($Ticket-CurrentUser); my ($id,$msg) = $rtfm-Load(Signature1); if (!id) { $RT::Logger-debug(failed ..); } else { HOWTO print a CF xxx from the loaded article ?; } Sure, that was my suggestion You don't need RTFM::Extension::ArticleTEmplate in order to load

Re: [rt-users] Sample for RTFM::Extension::ArticleTemplates using inside a template ?

2011-02-24 Thread Kevin Falcone
On Fri, Feb 25, 2011 at 01:14:35AM +0100, Daniel Schwager wrote: my $rtfm = RT::FM::Article-new($Ticket-CurrentUser); my ($id,$msg) = $rtfm-Load(Signature1); if (!id) { $RT::Logger-debug(failed ..); } else { HOWTO print a CF xxx from the loaded article ?; } Sure, that was my