Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Resource types: Difference between revisions

From MoodleDocs
m (Text replacement - "</code>" to "</syntaxhighlight>")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Further suggestions ==
== Further suggestions ==
* To avoid "[ [resourcetypenew] ]" on "Adding a new Resource to topic" page and course page Add a resource... dropdown, modify lang/en_utf8/resource.php (or other specific language file?) to include:
* To avoid "[ [resourcetypenew] ]" on "Adding a new Resource to topic" page and course page Add a resource... dropdown, modify lang/en_utf8/resource.php (or other specific language file?) to include:
<code>
<syntaxhighlight lang="php">
$string['resourcetypenew'];
$string['resourcetypenew'] = "Create my new resource";
</code>
</syntaxhighlight>
[[User:Paul Maguire|Paul Maguire]] 21:30, 28 January 2010 (UTC)
[[User:Paul Maguire|Paul Maguire]] 21:30, 28 January 2010 (UTC)
* To customize the icon associated with your new resource type, visit yourmoodle/mod/resource/lib.php - resource_get_coursemodule_info(...)
* To customize the icon associated with your new resource type, visit '''/mod/resource/lib.php''' - '''resource_get_coursemodule_info(...)'''
[[User:Paul Maguire|Paul Maguire]] 21:50, 28 January 2010 (UTC)
[[User:Paul Maguire|Paul Maguire]] 21:50, 28 January 2010 (UTC)

Latest revision as of 20:27, 14 July 2021

Further suggestions

  • To avoid "[ [resourcetypenew] ]" on "Adding a new Resource to topic" page and course page Add a resource... dropdown, modify lang/en_utf8/resource.php (or other specific language file?) to include:
$string['resourcetypenew'] = "Create my new resource";

Paul Maguire 21:30, 28 January 2010 (UTC)

  • To customize the icon associated with your new resource type, visit /mod/resource/lib.php - resource_get_coursemodule_info(...)

Paul Maguire 21:50, 28 January 2010 (UTC)