Zone Relative Links
-
lundi 18 juin 2012 06:26
There are intranet (http://companyportal) and internet (http://portal.company.com) sites.
Both have links to each other. Is it possible to make linking relative to zone from which user is accessing sites ?
Toutes les réponses
-
lundi 18 juin 2012 06:35
Hi,
Can you elaborate it more may be with examples.
Are this two different web applications or sites and subsites?
Thanks.... ________________ Baba (MCTS, MCPD)
-
lundi 18 juin 2012 07:44
Hi,
Yes, we can do it from implementing the custom Sign-In page, based upon the Sign-In user or group member we can redirect the site to specific zone.
Check out this thread http://social.technet.microsoft.com/Forums/lv/sharepoint2010programming/thread/a1c39bc9-3d02-4771-940e-9e17f45217d5
- Modifié Siva_Reddy lundi 18 juin 2012 07:58
-
lundi 18 juin 2012 14:16
Hi,
Can you elaborate it more may be with examples.
Are this two different web applications or sites and subsites?
Thanks.... ________________ Baba (MCTS, MCPD)
First there were:
http://companyportal1
http://companyportal2
http://companyportal1 has many links which lead to http://companyportal2 resources
Now there are
https://portal1.company.com
https://portal2.company.com
https://portal1.company.com has many links which still lead to http://companyportal2 resources, but should lead to https://portal2.company.com
So is there some way to make these panportal links relative to zone in use ?
-
mardi 19 juin 2012 06:42
Hi,
As per my knowledge this is not possible.
Thanks.... ________________ Baba (MCTS, MCPD)
- Marqué comme réponse GuYumingMicrosoft Contingent Staff, Moderator lundi 25 juin 2012 07:44
-
mardi 19 juin 2012 09:38Modérateur
there may be other approach, but i think you can create your own server control to get the URL based on the zone of the current web application.
you can get current zone with SPUrlZone theZone = theSite.Zone as described in http://blogs.technet.com/b/speschka/archive/2011/03/27/how-to-get-all-claims-providers-associated-with-a-web-application-in-sharepoint-2010.aspx . Then you can get the target web app url with SPAlternateURL http://sharepointmalaya.blogspot.com/2011/02/getting-sharepoint-web-application-url.html

