I need to create a new Block on my site that will be for links. It needs to be like the Main Menu block but for links is there any way I can do that?
Just set $this->content->text equal to the html code for the links. If u wanted a link to moodle for example:
$this->content->text = "<ahref="http://moodle/org"> Link to moodle </a>";
seperate the links with <p> or <br>.
The second way is to change the block type from text to array and pass in the required arguments.
If you havent yet got a basic HelloWorld style block working take one of the blocks which come packaged with moodle and read the readme file in moodle/blocks that should get u started.
What and where is a "Label resource" and then I can work on how to add them to the main menu block.
I did my homework first: a search, using Google on the whole site, and found the note to which I am replying and another which assumed the reader knew what a "Label resource" was.
P.S. Thanks for all of the effort ... I am working with a moodle of my own at last so I can work things through in my mind from the inside out J.
A label is an arbitrary piece of text/HTML that can be inserted in many places on the moodle site front page or a course main page.
Make sure that you login as admin and click the "turn editing on" button in the top right-hand corner of the screen. After this you should see some editing icons and two drop down lists, one for adding resources and one for activity modules. Click on the resources drop-down list and then click "insert a label". This will open up an editor window in which you can type almost anything you want (text or links), as well as embedding a picture, sound and other multimedia.
Here is a picture of the menu you need to look out for: