[TYPO3-german] HMENU mit special = directory & special.value dynamisch aus Datenbank
Oliver
info at hypix.net
Mon May 26 10:30:40 CEST 2014
Guten morgen liebe TYPO3ler,
hallo Philipp,
selbst mit der von dir angesprochenen Abfrage, die einleuchtend ist, funktioniert das ganze leider nicht.
Hier einmal die gesamte Abfrage:
temp.MetaNavigationIds = CONTENT
temp.MetaNavigationIds{
table = pages
select.where = tx_meta_pagetype = 9 #andWhere liefert das gleiche
renderObj = TEXT
renderObj.field = uid
renderObj.stdWrap = |
}
#Debug - gibt immer CONTENT aus
#page.999 = TEXT
#page.999.value = BLABLABLA
#page.999.value < temp.MetaPressNavigationIds
page.999 < temp.MetaPressNavigationIds
lib.MetaNavigation = HMENU
lib.MetaNavigation {
special = directory
special.value.data < temp.MetaNavigationIds
1 = TMENU
1 {
wrap = <ul style="height:2000px; background-color:red;"> | </ul>
NO{
wrapItemAndSub = <li> | </i>
wrapItemAndSub.insertData = 1
allStdWrap.insertData = 1
}
}
}
Ich finde hier keinen Fehler und weiß ehrlich gesagt nicht weiter.
Per TCA Erweiterung, die auch richtig in der Datenbank abgelegt wird, sollte es anhand dieser Datenbankabfrage doch ein leichtes sein, das MetaNavigations-Element zu erstellen.
Viele Grüße
Olli
Philipp Gampe schrieb am 23.05.2014 18:11:
> Hi Oliver,
>
> Oliver wrote:
>
>> table = pages
>> select{
>> tx_metas_pagetype = 9
>> }
>
> select hat kein keine Eigenschaft tx_metas_pagetype.
>
> Vermutlich meinst du
> select.where = tx_metas_pagetype = 9
> bzw.
> select.andWhere = tx_metas_pagetype = 9
>
> Grüße
> --
> Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
> Documentation – Active contributor TYPO3 CMS
> TYPO3 .... inspiring people to share!
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
More information about the TYPO3-german
mailing list