So if i follow you this will be a single application that powers multiple
cleint websites with different domain names?

If that's correct then you need i would look at cgi.http_host in your
onRequestStart message listener and then set that value into the event.
 Then your other controller functions can grab that value from the event to
retrieve the correct template for your client.

If you only have a small selection of templates you define them as results
in your event handler to be included, if you have more, or they change
regularly then you may want to think about dynamically adding the template
to the view stack from within a controller method.

-Chris


2010/1/25 olivierb <[email protected]>

> Hi,
>
> I just installed Model-Glue last month and I'm building my first
> application using it.
>
> I'm settinp up a templating system where clients sign up and choose
> one of three templates for their website. They can then put in their
> own information, logo, etc. When a visitor visits my client's URL, I
> want to show them the client information withing the chosen template.
> I'm not sure how to control which views are displayed?
>
> Thank you in advance for your help.
> Olivier
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to