Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How to specify a link relative to the root of a variation label

  Asked By: Hannah    Date: Dec 31    Category: Sharepoint    Views: 1239

The Web designers on my WCM project need a way to specify a url relative to the root of the variation label they are currently in. For example, if we have a site map page for english, and another one for german and they want to create a link in the page layout (shared by both english and german), how would they do that?



In code, I can obviously determine the right path, but I'm having trouble figuring out a way to do this so it's easy for them to specify the correct link in plain HTML.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Alexander Scott     Answered On: Dec 31

Well, if anyone is curious, the way we solved my problem was to use a custom resource file containing a different url  for each variation. The ASP.Net localization api automatically retrieves the correct  string for the current variation  (because you set the culture used for each variation) which we use to set the NavigationUrl property of a hyperlink control.

 




Tagged: