General developer forum

How to add breadcrumbs below the page heading ?

 
Picture of Amrata Ramchandani
Re: How to add breadcrumbs below the page heading ?
Group Plugin developers

Yes,I saw that.

I am able to use navbar->add() but that would be too manipulative.

Moodle Should be able to put the navbar as and when I navigate,right ? I am not eve getting  the first few path too like Dashboard/ etc which is common to every moodle page.

I manually have to put them on each page,why so ?

 
Average of ratings: -
Picture of Neill Magill
Re: How to add breadcrumbs below the page heading ?
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developers
Did you try adding extra items to the navigation tree in your plugins navigation callback?


If you add an item to the navigation that has the url of the page you want to modify the navigation for, then the bread crumbs would be automatically generated for it.


For example: https://github.com/moodle/moodle/blob/master/mod/quiz/lib.php#L1787

 
Average of ratings: -