Variation Label Menu customization RRS feed

  • Question

  • Hello,

    I have a question and I hope you can help me.

    I'm working on MOSS 2007 portal and made it multi lingual using the Labels. I have two languages Arabic and English. To make the user able to switch between the two languages I used the control "Variation Label Menu".

    Now my question is: How can I change or customize the look of this control? i.e: Change it from the drop down menu style to just one language selection.

    Take a look at this portal and see what I mean about the language selection: http://jo.zain.com OR http://www.alphamosaik.com

    Really looking forward for your reply to tell me how I can achieve this.

    Thanks in advance,
    Saturday, October 20, 2007 9:46 AM

All replies

  • I would really appreciate any suggestions guys!

    Monday, October 22, 2007 8:48 AM
  • I just wanted to pop up this topic again.

    Hopefuly some body will give me suggestions.

    Sunday, October 28, 2007 12:10 PM
  • The only way I could find to adjust the layout of the Variations Label menu is to write my own.  The code wasn't too hard, but to reference the correct libraries, you'll need to run the code with elevated permissions. 

    The code is too long to paste here (and probably too customized for my use to be relavent), but the core of it lies in using:

    ReadOnlyCollection<VariationLabel> userLabels = Microsoft.SharePoint.Publishing.Variations.Current.UserAccessibleLabels;
    foreach (VariationLabel label in userLabels)

    to get your labels.  You can format them as you wish from there.



    Wednesday, September 3, 2008 6:23 PM