[Typo3] text-based language menu (from HMENU)

Matthew matthew at manderson.co.uk
Sun Apr 3 17:07:25 CEST 2005


Hi Mark				

Better late than never. This is my setup code for stripping the language into simple text:

######### Language selector menu ########################
// clear the existing style and wrap
plugin.tx_srlanguagemenu_pi1._CSS_DEFAULT_STYLE >
plugin.tx_srlanguagemenu_pi1.links.stdWrap.split.wrap >

//add new wraps
plugin.tx_srlanguagemenu_pi1.links.stdWrap = <p> | </p>
plugin.tx_srlanguagemenu_pi1.link.NO.stdWrap.wrap = <span class="nav"> | </span>
plugin.tx_srlanguagemenu_pi1.link.INACT.stdWrap.wrap = <span class="nav"> | </span>
plugin.tx_srlanguagemenu_pi1.link.CUR.stdWrap.wrap = <span class="nav"> | </span>

/config the menu into a temp object called languageMenu
temp.languageMenu < plugin.tx_srlanguagemenu_pi1
temp.languageMenu.languagesUidsList = 2,1,3
temp.languageMenu.defaultLayout= 2
temp.languageMenu.useSysLanguageTitle = 0
temp.languageMenu.useSelfLanguageTitle = 1
config.linkVars = L
config.sys_language_uid = 0
config.language = en
config.locale_all = en_EN

[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = en
config.locale_all = en_EN
[global]

[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = ua
config.locale_all = ua_UA
[global]

[globalVar = GP:L = 3]
config.sys_language_uid = 3
config.language = ru
config.locale_all = ru_RU
[global]


- Matthew (matthew)

-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110107617/
			



More information about the TYPO3-english mailing list