Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • vladzebu 59 posts 346 karma points
    Jul 15, 2009 @ 09:39
    vladzebu
    0

    Language

    How can i get all languages from Settings/Languages . 

    Best regards , Vlad. 

  • Rik Helsen 670 posts 873 karma points
    Jul 15, 2009 @ 09:48
    Rik Helsen
    0

    This could help: http://www.nibble.be/?p=32

     

  • vladzebu 59 posts 346 karma points
    Jul 15, 2009 @ 09:58
    vladzebu
    0

    It's not help me  that link . In that link you get the language from Root site but i want from Settings/Languages . 

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jul 15, 2009 @ 09:59
    Dirk De Grave
    100

    Or, use api call 

    Language.getAll()

    which returns a Language[] array which you can iterate

     

    Cheers,

    /Dirk

     

  • vladzebu 59 posts 346 karma points
    Jul 15, 2009 @ 10:02
    vladzebu
    0

    I want from XLST to get languages . I must create an extension to call  Language.getAll() ? or i have some function in xslt umbraco.

    Best regards , Vlad .

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jul 15, 2009 @ 10:08
    Dirk De Grave
    1

    you got that right, you need an xslt extension as this is not available through the standard umbraco extension lib.

    Make sure to return languages as a XPathNodeIterator to be able to iterate using a for-each loop in xslt!

    /Dirk

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies