locked
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,
    Hasan.
    Saturday, October 20, 2007 9:46 AM

All replies

  • I would really appreciate any suggestions guys!

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

    Hopefuly some body will give me suggestions.

    Thank.s
    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)
    {
    ...code...
    }

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

    Tim

    http://www.thesug.org/blogs/lsuslinky

    Wednesday, September 3, 2008 6:23 PM