Use different 2 templates on a wrapurl?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
jojje
Regular
Posts: 41
Joined: Thu Dec 08, 2005 4:09 pm
Location: Sweden
Contact:

Use different 2 templates on a wrapurl?

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Use different 2 templates on a wrapurl?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply