Add a new link in Dashboard

Add a new link in Dashboard

by Bharanidharan Murugaiyan -
Number of replies: 2

How to add a new navigation link in homepage for the existing module?

Average of ratings: -
In reply to Bharanidharan Murugaiyan

Re: Add a new link in Dashboard

by Ayush Jain -

Hello,

I am not sure where you want to add new link if  you want  to add new link in top header navigation follow below step- 

Appearance >Themes >  Theme settings inside theme setting you will find  'Custom menu items' textarea

Put this is-


Moodle community|https://moodle.org

-Moodle free support|https://moodle.org/support

-Moodle Docs|http://docs.moodle.org|Moodle Docs

-German Moodle Docs|http://docs.moodle.org/de|Documentation in German|de

-###

-Moodle development|https://moodle.org/development

Moodle.com|http://moodle.com/ 

You will see TOp menu.




In reply to Ayush Jain

Re: Add a new link in Dashboard

by Bharanidharan Murugaiyan -

Thanks!


But not on the top. I have find it out. I have added in the navigationlib.php which added the link to the left section menu.



    if(has_any_capability(array('mod/customer:addinstance'), $this->page->context))

    {

        $addcustomer_node = new flat_navigation_node(navigation_node::create('Add New Customer', '/mod/customer/addnewcustomer.php?id='.$course->id, $key = 'key_addnewcustomer'), 0);

        $this->add($addcustomer_node);

        

        $associateproduct_node = new flat_navigation_node(navigation_node::create('Associate Product', '/mod/customer/associateproduct.php', $key = 'key_associateproduct'), 0);

        $this->add($associateproduct_node);

    }