[TYPO3-german] TS Abfrage ob Unterseiten existieren
JoH
info at cybercraft.de
Mon Jun 12 20:34:31 CEST 2006
> Ich habe die Abfrage, ob Unterseiten existieren mit einem
> select-Befehl gelöst, der die Tabelle pages abfragt, die als parent
> ID die aktuelle Seite haben. Gekoppelt an eine if isTrue Bedingung
> funktioniert das wunderbar.
>
> temp.menu_haupt_in_content = HMENU
> temp.menu_haupt_in_content {
> entryLevel = -1
> stdWrap {
> dataWrap = <h1>{page:title} - Navigation</h1>|
> if {
> isTrue.numRows {
> table = pages
> select {
> pidInList.data = {page:uid}
> }
> }
> }
> }
> 1 = TMENU
> 1 {
> wrap = <ul>|</ul>
> NO.linkWrap = <li>|</li>
> }
> }
Versuch mal, ob folgendes nicht auch fuktioniert, weil Du Dir damit eine
komplette MySQL Abfrage sparst:
temp.menu_haupt_in_content = HMENU
temp.menu_haupt_in_content {
entryLevel = -1
stdWrap {
dataWrap = <h1>{page:title} - Navigation</h1>|
required = 1
}
1 = TMENU
1 {
wrap = <ul>|</ul>
NO.linkWrap = <li>|</li>
}
}
sollte eigentlich klappen.
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
More information about the TYPO3-german
mailing list