{"action":"closed","issue":{"url":"https://api.github.com/repos/pencilblue/pencilblue/issues/708","labels_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/708/labels{/name}","comments_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/708/comments","events_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/708/events","html_url":"https://github.com/pencilblue/pencilblue/issues/708","id":100344797,"number":708,"title":"Having a template element named media gets that element rendered instead of images","user":{"login":"v3rt1go","id":148487,"avatar_url":"https://avatars.githubusercontent.com/u/148487?v=3","gravatar_id":"","url":"https://api.github.com/users/v3rt1go","html_url":"https://github.com/v3rt1go","followers_url":"https://api.github.com/users/v3rt1go/followers","following_url":"https://api.github.com/users/v3rt1go/following{/other_user}","gists_url":"https://api.github.com/users/v3rt1go/gists{/gist_id}","starred_url":"https://api.github.com/users/v3rt1go/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v3rt1go/subscriptions","organizations_url":"https://api.github.com/users/v3rt1go/orgs","repos_url":"https://api.github.com/users/v3rt1go/repos","events_url":"https://api.github.com/users/v3rt1go/events{/privacy}","received_events_url":"https://api.github.com/users/v3rt1go/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pencilblue/pencilblue/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":{"login":"brianhyder","id":3628887,"avatar_url":"https://avatars.githubusercontent.com/u/3628887?v=3","gravatar_id":"","url":"https://api.github.com/users/brianhyder","html_url":"https://github.com/brianhyder","followers_url":"https://api.github.com/users/brianhyder/followers","following_url":"https://api.github.com/users/brianhyder/following{/other_user}","gists_url":"https://api.github.com/users/brianhyder/gists{/gist_id}","starred_url":"https://api.github.com/users/brianhyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianhyder/subscriptions","organizations_url":"https://api.github.com/users/brianhyder/orgs","repos_url":"https://api.github.com/users/brianhyder/repos","events_url":"https://api.github.com/users/brianhyder/events{/privacy}","received_events_url":"https://api.github.com/users/brianhyder/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-08-11T15:53:33Z","updated_at":"2015-08-24T15:19:21Z","closed_at":"2015-08-24T15:19:21Z","body":"I'm working on a custom pencilblue theme, and I have one .html file under /plugin/<name>/templates/elements named media.html\r\n\r\nI use ^tmp_elements=media^ to render this element on a page.\r\nI've created an article that was using another layout file (not index.html which contains ^tmp_elements=media^). When adding content for the article from /admin I've associated a couple of media items with that article and inserted them in the text using the media icon in the rich text editor. This in turn creates a ^media_XXXX_XXXXXXX^ item.\r\n\r\nWhile previewing the content in the rich text editor everything showed fine, but when saving the article and viewing it in the front end, the content of media.html is rendered instead of the actual image."}}