Start by getting the current VariationLabel; then compare its title against a known variation title.
VariationLabel currentVariation = PublishingWeb.GetPublishingWeb
(SPContext.Current.Web).Label;
if (currentVariation != null &&
currentVariation.Title.ToLowerInvariant () ==
"au")
{
//do something
}
No comments:
Post a Comment
Spam comments will be deleted
Note: only a member of this blog may post a comment.