8 Dec
2007
8 Dec
'07
5:45 p.m.
Karoly Negyesi wrote:
Now you can do this: $router_item = menu_get_item(); if ($router_item['path'] == 'node/%' && $router_item['access']) $node = $router_item['map'][1] ...
This isn't quite the same. One thing I've realized while writing the context system in Panels 2 is that arguments are only one source of context. I also have relationships, which are a very important source of context, and built-in contexts, which are maybe not quite as important in this scenario. So it's a half-way step, but it is only half way, and it still requires the context consumer to have entirely too much knowledge of the construction of the URL, IMO.