TYPO3 cal not showing attachments

From snippet wiki
Jump to navigation Jump to search

That Typoscript seems to work:

plugin.tx_cal_controller.view.event.event.attachment >
plugin.tx_cal_controller.view.event.event.attachment = COA
plugin.tx_cal_controller.view.event.event.attachment {
    20 = TEXT
    20 {
        field = attachment
        split {
            token = ,
            cObjNum = 1

            1 {
                current = 1
                filelink {
                    path = {$plugin.tx_cal_controller.uploadPath.media}
                    icon = 1
                    icon.noTrimWrap = || |
                    icon_link = 1
                    size = 1
                    size.noTrimWrap = | (|B) |
                    size.bytes = 1
                    size.bytes.labels =   | K| M| G
                }
            }
            wrap = <div>|</div>
        }
    }
    stdWrap.if.isTrue.field = attachment
    stdWrap.dataWrap = <div>%%%ATTACHMENT_LABEL%%%:&nbsp;|</div>
}