| Templates and URL variables -
24-06-2006, 11:23 PM
Hi... we have several eSupport frontends for different clients with different branding etc.
Problem is, many of the site variables e.g. $baseurl, point to the base installation, and so links, forms, etc. etc. all take the client off the branded site. (We use URL rewriting for each of the different frontends/templates, e.g. support.client1.com, support.client2.com---by default all links, forms, etc. go to support.company.com, so we are having to hardcode the URLs in each of the templates).
I have been doing search and replace on one file at a time... but this takes a long time and must be repeated for each site...
Does anybody know of a way to globally replace all variables for a template? Are the template files stored somewhere on the filesystem, or in the database?
If in the database, what would the SQL be to select all files for a given template? Maybe I could write a script that does the replacements...
Thanks for any help you can give..
Arinaya |