Page 1 of 1

Use different 2 templates on a wrapurl?

Posted: Tue Aug 15, 2006 9:04 am
by jojje
I have 2 different categories on my webpage, each with it´s own template (2 different languages). I have a menu specificly made for each language/template. On both menus one link open up a gallery with the wrapurl-plugin. This wrapurl uses the standad template to show it and because of that the menu changes language if one is on the other template.

So my question is, is it possible to use 2 different templates on the same wrapurl depending from what page/template one is comming?


Is it possible to and something like "?lang=esp" or "?lang="eng" to the link to the gallery and then in index.tpl check for this. And if it´s ie. is "esp" the wrapurl is opened with the esp-template instead of the standard template.

Or is there another better solution or is it impossible to do this?

Re: Use different 2 templates on a wrapurl?

Posted: Tue Aug 15, 2006 10:03 am
by garvinhicking
Hi!

That does not easily work; you would need to patch up the wrapurl plugin and insert PHP to check $serendipity['GET']['category'] and set different templates depending on that...

It definintely involves some PHP coding for you...

Best regards,
Garvin