contao/import — Issue #3252: Download file extension in template Variable.
Author: tsarma
Created: 2011-11-29 21:11:38+00:00
State: open
Labels: Feature, frontend

It would be a very nice additional information if we get the file extension in Template Variable of Content Element download. Right now I've edit the core (file contentDownload.php) to get this information.

I have to add this line in compile method of contentDownload.php

```
$this->Template->fileExtension = $this->objFile->extension;
```

I think this can be added without problem, so that on one has to change the core.

--- _Originally created on July 11th, 2011, at 02:55pm (ID 3252)_