When trying to add a menu item with <nolink> to Context, the context is not saved.
Not sure if this is a Context issue or for this module - fortunately for my usecase it doesn't matter that much, but thought I would report this anyway, as I'm sure someone will need that functionality at some point :)
Comments
Comment #1
nchiaro commentedEdit in: context/plugins/context_condition_menu.inc and add 'if':
function execute() {
if ($this->condition_used()) {
$trail = menu_get_active_trail();
foreach ($trail as $item) {
if (!empty($item['href'])) {
foreach ($this->get_contexts($item['href']) as $context) {
/* Se agrego el if para que funcione con special menu items*/
if(($item['href'] != '') && ($item['href'] != ''))
{
$this->condition_met($context, $item['href']);
}
}
}
}
}
This works for me!
:)