Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Re: [anup123] Image next to message from admin...How To?

Quote Reply
Re: [anup123] Image next to message from admin...How To? In reply to
Hi Anup,

You're going to have to use a template global to do that as GT::Template doesn't supported nested tags (tags inside tags) in basic comparisons. Basically, you want to create a global called is_admin, with the content:

Code:
sub {
my ($from, $domain) = @_;
return $from eq qq|"Webmaster"<webmaster\@$domain>|;
}

Then, in the template, just use:

<%if is_admin($msgs_sent_from, $domain)%>....<%endif%>

You can tweak the text between the qq| and the | if the actual admin e-mail address changes.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Image next to message from admin...How To? anup123 2942 May 26, 2003, 8:16 AM
Post Re: [anup123] Image next to message from admin...How To?
anup123 2873 May 28, 2003, 1:13 AM
Thread Re: [anup123] Image next to message from admin...How To?
Jagerman 2843 May 28, 2003, 5:33 PM
Post Re: [Jagerman] Image next to message from admin...How To?
anup123 2838 May 29, 2003, 9:18 AM
Post Re: [Jagerman] Image next to message from admin...How To?
anup123 2863 Jun 5, 2003, 1:24 PM
Post Re: [Jagerman] Image next to message from admin...How To?
anup123 2832 Jun 5, 2003, 2:41 PM