[TYPO3-english] How to show language menu in any place of template? Can't show Language menu.
Журавлева Ольга
ozhurevleva at gmail.com
Wed Apr 22 09:26:08 CEST 2009
How to show language menu in any place of template?
Can't show Language menu.
template_1.html:
<!--###DOCUMENT_BODY### start-->
<!--LANGMENU--><div class="lang">langmenu</div><!--LANGMENU-->
...
TS Setup:
config.linkVars = L
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = ru
config.locale_all = ru_RU
[global]
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.locale_all = english
[global]
select.where = colPost =0
select.LanguageField = sys_language_uid
lib.langMenu = HMENU
lib.langMenu.special = language
lib.langMenu.special.value = 0,1
lib.langMenu.1 = GMENU
lib.langMenu.1.NO {
XY = [5.w]+4, [5.h]+4
backColor = white
transparentColor=white
5 = IMAGE
5.file = typo3/sysext/cms/tslib/media/flags/ru.gif ||
typo3/sysext/cms/tslib/media/flags/flag_uk.gif
5.offset = 2,2
}
lib.langMenu.1.ACT < lib.langMenu.1.NO
lib.langMenu.1.ACT=1
lib.langMenu.1.ACT.backColor = #ADDB94
lib.langMenu.1.USERDEF1 < lib.langMenu.1.NO
lib.langMenu.1.USERDEF1=1
lib.langMenu.1.USERDEF1.5.file = typo3/sysext/cms/tslib/media/flags/ru.gif
|| typo3/sysext/cms/tslib/media/flags/flag_uk_d.gif
lib.langMenu.1.USERDEF1.noLink = 1
lib.stdheader.10.stdWrap.wrap =
tt_content.stdWrap.dataWrap = <A name="{field:uid}"></a>
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/my/res/stylesheet.css
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/my/template_1.html
workOnSubpart = DOCUMENT_BODY
#Show langmenu
marks.LANGMENU = COA
marks.LANGMENU.wrap = <div class="lang"> | </div>
marks.LANGMENU.5<lib.langMenu
More information about the TYPO3-english
mailing list