Typo3 – Language Menu – Only Show the inactive language


lib.languageMenu = HMENU
lib.languageMenu {
    special = language
    special.value = 1
    wrap = <div class="lang">|</div>

    1 = TMENU
    1 {
        NO = 1
        NO.stdWrap.cObject = TEXT
        NO.stdWrap.cObject.value = I NORKSIN
        NO.ATagParams = class="no"
    }
}

[globalVar = GP:L = 1]
temp.lang {
    special.value = 0
    1 {
        NO.stdWrap.cObject.value = IN ENGLISH
        NO.ATagParams = class="en"
    }
}
[global]

If you have any query then feel free to contact me at Jainish Senjaliya

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s