{"issue":{"state":"closed","created_at":"2011-11-29T15:59:07Z","updated_at":"2011-11-29T15:59:14Z","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":6,"body":"This has been requested many times. People want to refer to the tl_page table by using the current page ID. Up to now, they have to use the other variables {{env::page_alias}}, which can change then the client renames the page.\n\nTypical scenario is inside a module where you want to make the module use a condition clause that is checking the ID of the current page, e.g.\npagecategory={{env::page_id}}\n\nNote. Don't want to place the actual ID in the place of \"id\", the inserttag should return the current page ID, e.g. 6.\n\nPerhaps I can suggest that you move the current page variables to be returned as you do with the {{user::xxx}} inserttag, e.g.\n{{page::xxxx}}\n\n{{page::id}}\n{{page::name}}\n{{page::alias}}\n\n--- _Originally created by thyon on November 20th, 2008, at 07:03am (ID 276)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2386225,"number":276,"labels":[{"name":"Feature","color":"4183c4","url":"https://api.github.com/repos/contao/import/labels/Feature"},{"name":"frontend","color":"e6e6e6","url":"https://api.github.com/repos/contao/import/labels/frontend"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Add inserttag for current page ID","closed_at":"2011-11-29T15:59:14Z","html_url":"https://github.com/contao/import/issues/276","url":"https://api.github.com/repos/contao/import/issues/276","milestone":{"state":"closed","created_at":"2011-11-29T15:29:28Z","due_on":null,"closed_issues":18,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"number":5,"description":"TYPOlight 2.6.3 (maintenance release)","title":"2.6.3","url":"https://api.github.com/repos/contao/import/milestones/5","open_issues":0}},"action":"created","comment":{"created_at":"2011-11-29T15:59:13Z","updated_at":"2011-11-29T15:59:13Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"--- _Originally completed on December 4th, 2008, at 03:04pm_","id":2932661,"url":"https://api.github.com/repos/contao/import/issues/comments/2932661"}}