Hi Alex.
I have a similar function, but I need different "sites" (or only newticket template) dependable from which operator has logged. In my system new tickets can be generated only by an operator, but I need different newticket template depending on who`s logged.
Something like this:
if operator = john, then use ttx.cgi?style=site1
if operator = paul, then use ttx.cgi?style=site2
if operator = joe, then use ttx.cgi?style=site3
How can i get this?
Thanks.
Andrés.
You may consider using styles. Style is a set of templates.
1) Create a directory under templates directory. Name it site1 (just an example, you may use any name).
2) Copy all files under templates directory to the site1
3) Execute Trouble Ticket Express via the following URL
ttx.cgi?style=site1
it will use templates form site1 subdirectory.
If a template does not exist in the specified style folder, the script will use default template.
The feature is not documented yet, but it is stable and will be preserved in the future versions.