lib.relatedStudies = CONTENT lib.relatedStudies { wrap = table = sys_category select { pidInList = 8 join = sys_category_record_mm ON(sys_category_record_mm.uid_local=sys_category.uid) where = sys_category_record_mm.tablenames='pages' andWhere.dataWrap = sys_category_record_mm.uid_foreign = {TSFE:id} } renderObj = TEXT renderObj.field = uid renderObj.wrap =
  • |
  • } lib.relatedStudies = HMENU lib.relatedStudies.special = categories lib.relatedStudies.special.value = CONTENT lib.relatedStudies.special.value { table = sys_category select { pidInList = 8 join = sys_category_record_mm ON(sys_category_record_mm.uid_local=sys_category.uid) where = sys_category_record_mm.tablenames='pages' andWhere.dataWrap = sys_category_record_mm.uid_foreign = {TSFE:id} } renderObj = TEXT renderObj.field = uid } lib.relatedStudies.special.value.insertData = 1 lib.relatedStudies { expAll = 1 1 = TMENU 1 { NO = 1 NO { doNotLinkIt = 1 before.wrap =
    | stdWrap.cObject = COA stdWrap.cObject { 10 = FILES 10 { # Get the images related to the current page references { table = pages fieldName = media } # Render each image and wrap it as appropriate renderObj = TEXT renderObj { typolink { parameter.data = file:current:publicUrl forceAbsoluteUrl = 0 returnLast = url } wrap = |, } stdWrap { # Take only the first image if several are defined listNum = 0 # Use default image if none is available ifEmpty.cObject = TEXT ifEmpty.cObject.typolink { parameter = path_to_images/logo.png forceAbsoluteUrl = 1 returnLast = url } wrap = } } 20 = TEXT 20.data = field:pid 20.cObject = RECORDS 20.cObject { tables = pages source.field = pid conf.pages = TEXT conf.pages.field = title } 20.wrap =

    |

    30 = TEXT 30.field = title 30.wrap =

    |

    40 = TEXT 40 { typolink { parameter.field = uid returnLast = url } insertData = 1 wrap = Read More
    } } after.wrap = |
    } ACT = 1 ACT { doNotLinkIt = 1 stdWrap.cObject = COA stdWrap.cObject { } } } } [global]