Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

2 different templates

Quote Reply
2 different templates
Hi there,

is there a way to use two different templates simultaneously using 1 db/installation?

Let's say a PC friendly layout under www.foo.com and a mobile friendly layout under mobile.foo.com?


Quote Reply
Re: [RoadRunner] 2 different templates In reply to

I would have thought so. You could use mod_rewrite, to run the site statically - and have 2 sets of templates (luna, and wap).

Then, its just a case of ammending t=wap to the page.cgi calls for the WAP pages, and voila =)


RewriteRule ^(.*?)/index.html$ /cgi-bin/page.cgi?g=$1;t=wap

Hope that helps.


Andy (mod)
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [RoadRunner] 2 different templates In reply to
Yes, like Andy said, you can do that,

Or you can use the multi-language plugin to build a second set of pages and then symlink the webroot of mobile.foo.com over to foo.com/mobile.

If you will send me an email, we have a new custom plugin that might work for you. It can build pages to an admin-set folder on the server, as long as the permissions are set properly for the script to write to it. It's not an inexpensive route to take, but it does suit your requirements perfectly.

Quote Reply
Re: [Jack] 2 different templates In reply to
Folks, thanks for your replies!

I will get back to our customer and see what he is up to.

As soon as I know more I will contact you, Jack.