{"issue":{"created_at":"2011-11-29T18:46:06Z","state":"closed","updated_at":"2011-11-29T18:46:09Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","login":"importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"Right now, I can't find any way to output a new article's file enclosure's url. The closest I can find is \n**`<?php echo $enclosure['href']; ?>`** \nbut it appears to output something like this: \n**`posts/items/postTitle.html?file=tl_files/audiofiles/2010/song.mp3`**\n\nWhat I need is just the relative path to the file itself, which is what follows \n**`posts/items/postTitle.html?file=`** \nin the example above. \n\nSo I need this part: \n**`tl_files/audiofiles/2010/song.mp3`** \n\n\nCould you add such a php tag to the News template? Or does one already exist?\n\n--- _Originally created by Logan on May 9th, 2010, at 02:15am (ID 1937)_","assignee":null,"id":2389978,"number":1937,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"Feature","color":"4183c4","url":"https://api.github.com/repos/contao/import/labels/Feature"},{"name":"news","color":"e6e6e6","url":"https://api.github.com/repos/contao/import/labels/news"}],"title":"News template enclosure tag that outputs the file's url","closed_at":"2011-11-29T18:46:09Z","html_url":"https://github.com/contao/import/issues/1937","url":"https://api.github.com/repos/contao/import/issues/1937","milestone":null},"action":"closed"}