{"issue":{"state":"open","created_at":"2011-11-29T06:09:28Z","updated_at":"2011-11-29T06:09:36Z","user":{"gravatar_id":"0ef72d6d7f7ded4f9bf33c54eb11e19c","id":1202549,"url":"https://api.github.com/users/felixpfeiffer","avatar_url":"https://secure.gravatar.com/avatar/0ef72d6d7f7ded4f9bf33c54eb11e19c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"felixpfeiffer"},"comments":7,"body":"Hallo Leo,\n\nich benötige einen Hook, der greift, bevor sämtliche Module geladen werden. Leider habe ich unter den bestehenden Hooks keinen passenden gefunden. Daher mein Gedanke in der PageRegular.php folgenden Code einzubinden:\n\n```\n// Initialize modules and sections\n\t\t$arrCustomSections = array();\n\t\t$arrSections = array('header', 'left', 'main', 'right', 'footer');\n\t\t$arrModules = deserialize($objLayout->modules);\n\n\t\t// HOOK: add logic before all modules are generated\n\t\tif (array_key_exists('pageRegular', $GLOBALS['TL_HOOKS']) && is_array($GLOBALS['TL_HOOKS']['pageRegular']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['pageRegular'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callbackr0);\n\t\t\t\t$this->$callbackr0->$callbackr1($objPage);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Generate all modules\n\t\tforeach ($arrModules as $arrModule)\n```\n\nEvtl. gibt es eine besser Lösung, diese würde mich aber schon mal glücklich machen.\n\nGruß, Felix\n\n--- _Originally created on January 4th, 2009, at 01:16pm (ID 391)_","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"},"id":2378585,"number":391,"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"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Hook in der PageRegular","closed_at":null,"html_url":"https://github.com/contao/test/issues/391","url":"https://api.github.com/repos/contao/test/issues/391","milestone":null},"action":"created","comment":{"created_at":"2011-11-29T06:09:35Z","updated_at":"2011-11-29T06:09:35Z","user":{"gravatar_id":"0ef72d6d7f7ded4f9bf33c54eb11e19c","id":1202549,"url":"https://api.github.com/users/felixpfeiffer","avatar_url":"https://secure.gravatar.com/avatar/0ef72d6d7f7ded4f9bf33c54eb11e19c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"felixpfeiffer"},"body":"Kann bzw. darf man denn in der localconfig eine Klasse schreiben? Denn nur von Hand einfach die POST oder GET auszuwerten wäre mir das zu unsicher.\nUnd als Erweiterung lässt sich das ja dann auch nicht einbauen, da man dafür ja bei der Installation in die localconfig.php schreiben müsste.\n\n--- _Originally created on January 11th, 2009, at 12:07pm_","id":2916205,"url":"https://api.github.com/repos/contao/test/issues/comments/2916205"}}