I am trying to make a menu that displays the page\'s first content element header and image and have them be links. But the typolink part doesn\'t seem to work for me:
Just to add give the full working example. Using section.field = uid
you can link to the content element itself.
lib.menu = HMENU
lib.menu {
1 = TMENU
1.NO {
doNotLinkIt = 1
wrapItemAndSub = |
stdWrap.cObject = CONTENT
stdWrap.cObject {
table = tt_content
select {
pidInList.field = uid
}
renderObj = COA
renderObj {
10 = TEXT
10.field = header
10.typolink {
parameter.field = pid
section.field = uid
}
}
}
}
}