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?

Thanks.

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

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 =)

i.e

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

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
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.

Jack.
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.

Cheers,

RR