Hallo zusammen,
ich versuche derzeit ein Menü zu stricken welches in der zweiten Ebene Informationen aus eigens dafür angelegten feldern liest.
Mein Problem ist, wenn ich z.B. drei Unterseiten habe, dann bekommt jeder "Link" die kompletten informationen.
Also Link1 bekommt den Text von Link1, Link2 und Link3
Es soll natürlich nur der Text von Link1 angezeigt werden.
Hier mein momentanes TS:
plugin.qdpages.horizontal = HMENU
plugin.qdpages.horizontal {
special = directory
special.value = {$plugin.qdpages.horizontal.start}
excludeUidList = {$plugin.qdpages.horizontal.exclude}
if {
value = {$plugin.qdpages.horizontal}
equals = 1
}
1 = TMENU
1 {
wrap = <ul class="dropdown dropdown-horizontal"> | </ul>
expAll = 1
noBlur = 1
NO = 1
NO {
ATagTitle.field = abstract // description // subtitle // title
wrapItemAndSub = |*| <li> | </li> |*| <li class="last"> | </li>
stdWrap.htmlSpecialChars = 1
}
IFSUB < .NO
IFSUB {
wrapItemAndSub = |*| <li class="dir"> | </li> |*| <li class="dir last"> | </li>
}
}
2 < .1
2.wrap = <ul> | </ul>
2.NO = 1
2.NO {
stdWrap.prepend = CONTENT
stdWrap.prepend {
table = pages
select {
pidInList = this
pidInList.field = pid
orderBy = sorting
groupBy = uid
}
renderObj = COA
renderObj {
10 = TEXT
10 {
field = tx_qdpages_description
fieldRequired = tx_qdpages_description
crop = 350 | ... | 1
wrap= |
stripHtml = 1
}
#40 = IMAGE
#40 {
# required = 1
# fieldRequired = tx_qdpages_images
# wrap=|
# file.import=uploads/tx_qdpages/
# file.import.field= tx_qdpages_images
# file.width = 160
#}
#40.if.isTrue.data = tx_qdpages_images
}
}
}
}
Ist das überhaupt machbar?
Danke und Gruß
Der Trainer