Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Auto select template set?

Quote Reply
Auto select template set?
Hi,

I'm not sure if anyone has asked this question...

If I have multiple domains, and would like a different template set to be "automatically" chosen depending on the email domain the user chooses - can this be done?

With a single site I think being able to choose between different templates is a great idea for a bit of variety. But when it comes to multiple domains it would be great to have the ability to seperately brand each one internally - all chosen automatically off the user login. This would mean removing the users option to select the template set off the login pages and the rest... I'm not sure. :)

What do you think?

Cheers,
Regan.

Quote Reply
Re: Auto select template set? In reply to
Hi,

What I would do is cut and paste sub template in GMail.pm into a global called 'custom_template'. Then replace <%GMail::template%> with <%custom_template%>. This is the function that generates the select list of domains. You can then change:

$checked ||= $IN->param($name) || $ENV{SERVER_NAME};

to default it to the domain the user is on. If you are linking to that page, you can skip the above and just go to:

login.cgi?t=sometemplate

in the link.

Cheers,

Alex

--
Gossamer Threads Inc.