new "Add a resource" link

new "Add a resource" link

by John Arapoglou -
Number of replies: 0
Hello,

i am trying to develop an extra link to "Add a resource" drop down menu for a new type of resource. I have entered my new entry to this dropdown list and i want the "new" resource to based on "Link to a file or a web site" architecture.

So:
From lang-->en_utf8-->resource.php i created a new entry and at mod-->resource-->lib.php line 532 i entered next to'directory' my variable. So i can see the new resource entry at drop down menu at "Add a resource" list.

When i select the "Link to a file or a web site" i see that url : http://localhost/moodle2/course/modedit.php?add=resource&type=file&course=2&section=0&return=0

when i press my url i see: http://localhost/moodle2/course/modedit.php?add=resource&type=new_resource&course=2&section=0&return=0

the only thing that change is the "type". When i select the new resource unfortunatelly i see a blank page. I think something has to do with the mod-->resource-->type-->file. I have doublicated the files in a new folder named "new_resource" but still i see blank page. I checked the source code of these files but there is no reference for type='file'.

Any suggestions? I want to select from the drop down menu my new resource option(this works fine) and then open the "Link to a file or a web site" page.

Thanks in advanced,
Yiannis
Average of ratings: -