Hi , I am trying to add an element or a node to the course index menu on theme boost in moodle version 4.1 with no success, is there any example how i could do it? It works fine with theme classic since it does not have that toggleable menu on the left in course view
I am trying to do it this way :
$url = new moodle_url('/local/eabczoom/records_list.php', ["courseid" => $COURSE->id]);
$node = navigation_node::create(
'Leones',
$url,
navigation_node::TYPE_SETTING,
null,
null,
new pix_icon('i/settings', get_string('pluginname', 'local_eabczoom'))
);
$node->showinflatnavigation = true;
$node->classes = array('localeabczoom');
$node->key = 'localeabczoom';
$node->preceedwithhr = true;
if (isset($node) && isloggedin() && has_capability('local/eabczoom:view', $coursexontext)) {
$nav->add_node($node);
}