NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: walter.dasilva on December 01, 2015, 11:24:42 AM
-
Hi Bruce,
On this topic http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=3133.0
You said:
Another option (although more complex to set up) would be to base it on the URL used. for example john.capesoft.com might get a different theme to bruce.capesoft.com. But this approach is based on the whole idea of putting different customers on different URL's - which is a fair bit more management on your side for each new customer. (but has the potential to scale more easily as well.)
So, is there a specific embeed where i can manage this and how to get the URL?
Thanks a lot.
-
no, there's no specific embed - where you put it will depend on what you are doing and where.
The URL is in the property p_web.WholeURL
the host name part of the URL is in p_web.RequestHost
cheers
Bruce
-
Hi Bruce,
My customer access the site using http://domaincustomer.mydomain.com.br?global_id=<idcustomer>
in Process link i check for global_id.
i want to check for domaincustomer and set up global_id internally.
Thanks
-
cool, then parse out p_web.WholeURL.
you can do it in webHandler, in the ProcessLink embed, before the parent call.
Put the result in a session value, and you can then use the session value wherever you like.
cheers
Bruce
-
Hi Bruce,
I'm already using Process LInk to manage global_id, this way my customer has a entire portal personalized, and the customer of my customer has the same.
Thanks
-
Hi Bruce,
I've to use RequestHost, not WholeURL.
Thanks