2013-05-21, 11:28:18
The downsides, you will have to update it with other fields as they are added to core if you want to, I can modify index to accommodate missing ones in the future, also we assign all these to globals, so there is some confusion as to which are used where a global or data_index, which has been adopted by a lot of components and plugins. So we should make it standard one of these days.
Also there is the issues of menus and breadcrumbs and headers possibly not working, I am looking into all the possibilities to make this an official method of slowing dynamic slugs or making a new hook for it specifically.
For things that use page cache it's possible to add your dynamic slug into it for site maps etc. I just have not looked at it all yet.
As far as metad and template_file these are right out of index.php.
So maybe we should alias them to match the globals or make a new global object of page variables.
Also there is the issues of menus and breadcrumbs and headers possibly not working, I am looking into all the possibilities to make this an official method of slowing dynamic slugs or making a new hook for it specifically.
For things that use page cache it's possible to add your dynamic slug into it for site maps etc. I just have not looked at it all yet.
As far as metad and template_file these are right out of index.php.
So maybe we should alias them to match the globals or make a new global object of page variables.