Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

Talk:Reports

From MoodleDocs
Revision as of 20:38, 14 July 2021 by David Mudrak (talk | contribs) (Text replacement - "<code php>" to "<syntaxhighlight lang="php">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How your report gets included in the navigation

This section says that "by default, your report will be included in the admin tree under the 'Reports' section". How does Moodle determine the POSITION of your report in that 'Reports' section?

And how can you force your report to appear in a specific position in that 'Reports' folder, e.g. the top?

You can use this code to create a FOLDER in which you can put your report(s):

$ADMIN->add('reports', new admin_category('my_reports', get_string('my_reports','report_my_reports')));

but how do you force that folder to always appear at the top (or bottom) of the 'Reports' folder?

--Luis de Vasconcelos (talk) 23:38, 3 April 2014 (WST)