[TYPO3] TMENU_LAYER
JoH asenau
info at cybercraft.de
Thu Jan 25 18:28:42 CET 2007
> I just find out that the cObject below is showing the default language
> text at all languages. Do you know why?
>
> NO {
> before.cObject = COA |*| 0 |*|
> before.cObject {
> wrap = <cobject wrap>|</>
> 10 = RECORDS
> 10 {
> source.field = pid
> tables = pages
because it takes the stuff directly from the table "pages".
Translations can be found in the language overlay table.
So maybe you better use CONTENT instead of RECORDS, since you can set the
language there.
Try this:
NO {
before.cObject = COA |*| 0 |*|
before.cObject {
wrap = <cobject wrap>|</>
10 = CONTENT
10 {
table = pages
select {
pidInList.field = pid
languageField = sys_language_uid
}
renderObj = TEXT
renderObj {
field = title
}
}
}
ATagParams = class="menu"
allWrap = <my wrap>|</>
}
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-english
mailing list