### Create a menu where all pages of type "External URL" link directly to the actual external url: lib.blog.tmenu-external-url = HMENU lib.blog.tmenu-external-url { 1 = TMENU 1 { ### Remove 'onblur' attribute from links: noBlur = 1 ### Wrap the resulting menu in an unordered list: wrap = NO { ### Do not link whatever output we generate here: doNotLinkIt = 1 ### Wrap each menu item and its children in a list item: wrapItemAndSub =
  • |
  • ### Use a CASE cObject to build the menu links: stdWrap.cObject = CASE stdWrap.cObject { ### Base the rendering on the value of the 'doktype' field in the page record; '3' is the External URL page type: key.field = doktype ### The default rendering: default = HTML default { value { ### Set the link text to the value of the title field in the page record: field = title typolink { ### Set the parameter of the link to the uid field in the page record: parameter.data = field:uid } } } ### The special rendering for the External URL page type: ### Copy the default object into .3: 3 < .default 3 { value { typolink { parameter { ### Unset the value of .data: data > ### Set the parameter of the link to the value of the url field and prepend it with "http://": dataWrap = http://{field:url} } } } } } } } }