Copied to clipboard

Flag this post as spam?

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


  • Tigran 4 posts 24 karma points
    Jun 27, 2014 @ 16:09
    Tigran
    0

    The languages are not rendering on Umbraco 7

    Hello

    I am using this package to have multilanguage webpage.

    I have used this package many time with Umbraco 6, and I have no any problems.

    When I have switched to Umbraco 7 and tried to do same for haveing multilanguage webpage the languages are not rendering.

     

    Seams Macroses are not working.

    I checked metadata macros also, and it is also not rendearing.

    Could You pelase help me, is anybody worked on umbraco 7 with this package.

     

    Thanks in advance

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 27, 2014 @ 16:58
    Jan Skovgaard
    0

    Hi Tigran

    I don't think this package is compatible with Umbraco 7 since it was released in 2011 and A LOT has happened with Umbraco and the way Umbraco works under the hood since.

    I must admit I have never used this package before so I'm not fully aware of what it does - But I'm wondering if you could perhaps use the Vorto package instead?

    /Jan

  • Jorge 7 posts 27 karma points
    Jul 15, 2014 @ 18:44
    Jorge
    0

    I have been struggling with the language switcher after upgrading to Umbraco 7. I wrote a simple, quite untidy & very probably newbie xslt just to cover what I need. It does not include functionality of the package of course. Just a simple language switcher for 1-to-1 related pages. I hope it helps others somehow & that the package gets compatible with Umbraco 7.

    So in my case, I have /de and /en folders. All related to each other bidirectional through "Relate to original".

    <xsl:variable name="relations" select="umbraco.library:GetRelatedNodesAsXml($currentPage/@id)//relation"/>
    <xsl:variable name="niceUrl" select="umbraco.library:NiceUrl($currentPage/@id)"/>
    
    <ul>    
        <xsl:for-each select="$relations">
            <xsl:choose>
                <!-- EN -->
                <xsl:when test="contains($niceUrl, '/en/')">    
                    <xsl:variable name="url" select="umbraco.library:NiceUrl(@childId)" />  
    
                    <li><strong>EN</strong></li>
                    <xsl:if test="$url != ''">
                        <li><a href="{$url}">DE</a></li>
                    </xsl:if>   
                </xsl:when>
                <!-- DE -->
                <xsl:otherwise> 
                    <xsl:variable name="url" select="umbraco.library:NiceUrl(@parentId)" />
    
                    <xsl:if test="$url != ''">
                        <li><a href="{$url}">EN</a></li>
                    </xsl:if>       
                    <li><strong>DE</strong></li>    
                </xsl:otherwise>
            </xsl:choose>
        </xsl:for-each>
    </ul>
    

    Any updates, corrections are more than welcome!

Please Sign in or register to post replies

Write your reply to:

Draft