custom language links; possible?
Last Post 09/23/2008 8:10 PM by IcyK. 2 Replies.
Author Messages
IcyK
Nuke Newbie
Nuke Newbie
Posts:5


--
09/15/2008 4:41 PM
    I'd like to make 2 custom language links in a skin, one for English and one for Dutch. I don't want the 'standard' pull down menu, nor the flags, just 2 simple text links, placed next to a logo (below each other).

    Is that possible? And if so, can anyone give me some pointers in how to achieve it?
    I guess I somehow have to pick the current URL, strip off some stuff at the end, add '/language/en-EN/' and place back the stripped-off stuff.

    I don't use SEO URL's (yet).

    Any help would be appreciated ...

    Thanks in advance,

    IcyK


    Joseph Craig
    DNN MVP
    Posts:11667


    --
    09/15/2008 5:41 PM
    The new version of DotNetNuke, Version 4.9.0, has a new TEXT skin object. You can read about it at:

    http://www.cuongdang.net/Journal/Jo...ke-49.aspx

    Possibly it will help you. As the blog notes, this is a new feature, and might be a tad rough around the edges. On the other hand, it is there...

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    IcyK
    Nuke Newbie
    Nuke Newbie
    Posts:5


    --
    09/23/2008 8:10 PM

    @ jncraig: thanks for your reply. I looked into the new skin object, but it's a littje too complicated for my novice level .... at least for now.

    For the time being I'm using just a simple shortcut:

    {a class="SkinObject" href='<%= DotNetNuke.Common.Globals.NavigateUrl%>&language=en-EN'}english{/a}

    (replace { and } with < and > )


    ---