NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Changing Theme..
« previous
next »
Print
Pages: [
1
]
Author
Topic: Changing Theme.. (Read 4652 times)
walter.dasilva
Sr. Member
Posts: 314
SOFTVALE
Changing Theme..
«
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.
Logged
Walter - SOFTVALE
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: Changing Theme..
«
Reply #1 on:
December 01, 2015, 10:02:54 PM »
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
Logged
walter.dasilva
Sr. Member
Posts: 314
SOFTVALE
Re: Changing Theme..
«
Reply #2 on:
December 02, 2015, 12:03:38 PM »
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
Logged
Walter - SOFTVALE
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: Changing Theme..
«
Reply #3 on:
December 03, 2015, 09:15:08 PM »
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
Logged
walter.dasilva
Sr. Member
Posts: 314
SOFTVALE
Re: Changing Theme..
«
Reply #4 on:
December 04, 2015, 03:52:46 AM »
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
Logged
Walter - SOFTVALE
walter.dasilva
Sr. Member
Posts: 314
SOFTVALE
Re: Changing Theme..
«
Reply #5 on:
December 04, 2015, 05:56:09 AM »
Hi Bruce,
I've to use RequestHost, not WholeURL.
Thanks
Logged
Walter - SOFTVALE
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Changing Theme..