---
title: "Modify additionalHeaders for mlb_newsevent"
url: "https://www.typo3.net/d/112709-modify-additionalheaders-for-mlb-newsevent"
source: "typo3.net"
tags: ["Extensions","English","Frage"]
created: "2012-11-07"
last_reply: "2012-11-07"
replies: 0
solved: false
page: 1
pages: 1
lang: "en"
---

# Modify additionalHeaders for mlb_newsevent

Extensions · 0 Antworten · gestartet 2012-11-07

## Eröffnungsbeitrag

**tomitzel** · 2012-11-07 · [Beitrag #1](https://www.typo3.net/d/112709-modify-additionalheaders-for-mlb-newsevent/1)

I would like to change dinamically the headers of a page that downloads an ICS file using the extension mbl_newsevent. As you may know, usually the ICS filename is Event.ics and I want to change that to Event_1234.ics (where 1234 is the the tt_news uid). My code for that:

```typoscript
singleicsevent {
    config {
        disableAllHeaderCode = 1
        additionalHeaders = TEXT
        additionalHeaders.value = Content-type:text/ics | Content-Disposition:    attachment; filename="Event_{GPvar:tx_ttnews|tt_news}.ics"
        additionalHeaders.insertData = 1
        no_cache = 1
        xhtml_cleaning = 0  
    } 
}
```

But that does not work as additionalHeaders is of type string and that is ignored. Any suggestions how I can do that only with typoscript?

---

Quelle: „Modify additionalHeaders for mlb_newsevent“, typo3.net, https://www.typo3.net/d/112709-modify-additionalheaders-for-mlb-newsevent
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
