Log in

View Full Version : pass the template in the URL?


Logtenberg
05-14-2003, 12:31 AM
Would this be a hack or just some simple coding...

I want to be able to pass which template to use in the url and if none are indicated it just defaults to what ever template it supposed to use.

Why?
I have a search box in my header of a certain template. In order to maintain consistancy I need the search results to remain in the template style the search was made from....

thanks.

Logician
05-14-2003, 09:13 AM
You can insert a hidden form variable to your search box at the top, then change the template/style id in the global.php if that variable is set.

Logtenberg
05-22-2003, 09:04 PM
Any idea what the variable is called? Would I have to hack global.php?

thanks

Logtenberg
05-24-2003, 04:25 PM
does anyone know the correct coding?