[TYPO3-english] Alternative page language record and fallback to default
Victor Livakovsky
v-tyok at mail.ru
Fri Aug 14 18:31:37 CEST 2009
Hi, list.
I have multi-language website and I use "media" field for storing
pictures, that are used for GMENU individual backgrounds for each menu
item. Everything is perfect, but in my case I have to add same images to
"media" field for every alternative page language record, because
otherwise nothing will be shown. Is there any configuration option, that
allows to fallback to "media" field of default page record if nothing is
found inside of this field of selected page language record.
Here is my menu code:
##########################################
# Left menu
##########################################
temp.left_menu = HMENU
temp.left_menu.wrap = <ul>|</ul>
temp.left_menu.1 = GMENU
temp.left_menu.1.NO {
XY = [10.w],[10.h]
10 = IMAGE
10.file.import = uploads/media/
10.file.import.field = media
10.file.import.listNum = 0
20 = TEXT
20.text.field = nav_title // title
20.offset = 56,18
20.fontSize = 16
20.fontColor = white
20.iterations = 2
wrap = <li>|</li>
ATagTitle.field = nav_title // title
ATagParams = target="_blank"
ATagParams.if {
value = 3
equals.field = doktype
}
}
temp.left_menu.1.RO < temp.left_menu.1.NO
temp.left_menu.1.RO = 1
temp.left_menu.1.RO.10.file.import.listNum = 1
temp.left_menu.1.RO.20 {
shadow {
offset = 2,2
color = gray
blur = 99
}
}
temp.left_menu.1.ACT < temp.left_menu.1.RO
temp.left_menu.1.ACT = 1
Thank you in advance.
More information about the TYPO3-english
mailing list