{"issue":{"created_at":"2011-11-28T16:18:21Z","state":"open","updated_at":"2011-11-28T16:18:24Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"importer"},"comments":3,"body":"I love that I can edit the templates from within TYPOlight, but I want to use one of the templates for the output of one module, not every instance of the same module. \n\nExample: I am using the random image module, but instead of it inserting the image with an \"img\" tag, I want it to make the image the background of a div. That means I am editing the template. But I don't want this to be the output of every Random Image module. \n\nThat got me thinking that it would be awesome if a user could choose the output template for every module. Each module would have it's own prefix: \"mod_randimg+CustomTitle_.tpl\" and any template with that prefix (mod_randimg) would show up in the list to choose from. \n\nThis would make it so that people could dramatically extend and develop their own modules based on existing ones by simply editing the output template. Then these templates could be shared in the community.\n\n[Download the attachments](http://www.contao.org/tl_files/tickets/155.zip \"Download the attachments of this ticket\")\n\n--- _Originally created by Logan on October 1st, 2008, at 08:12pm (ID 155)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"labels":[{"name":"Feature","color":"4183c4","url":"https://api.github.com/repos/contao/test/labels/Feature"},{"name":"framework","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/framework"}],"id":2369141,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":155,"title":"Choose output template for all modules","closed_at":null,"html_url":"https://github.com/contao/test/issues/155","url":"https://api.github.com/repos/contao/test/issues/155","milestone":null},"action":"created","comment":{"created_at":"2011-11-28T16:18:22Z","updated_at":"2011-11-28T16:18:22Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"body":"Simply add an if/else-statement to the template to e.g. check for the module ID (there should be some other solutions in the forum, too).\n\n--- _Originally created on October 1st, 2008, at 08:25pm_","id":2899570,"url":"https://api.github.com/repos/contao/test/issues/comments/2899570"}}