Im trying to insert an image right next to categories, something like a bullet.
I went into index.php just to try, and I found this:
print_whole_category_list(NULL, NULL, NULL, -1, false);
print_course_search('', false, 'short');
So I went and added the following
echo "<img src='http://www.producciones3.com/hebron/server/moodles/user/pix.php?file=/2/f1.jpg'>";
right before print_heading_block(get_string('categories'));
And found that, that doesnt help at all, lol.... but, now I know how the insert and image there lol.
I believe that I have to change something in print_whole_category_list(NULL, NULL, NULL, -1, false); in order to have bullets for the categories.
is printwhole_category_list a function? does someone know where is it defined? can someone help me adding this bullets?
Some one please help... thank you!.
By the way: moodle site is http://www.producciones3.com/server/moodles.
Also, below you will find a screenshot that explains in RED what I want to do and do not know how to do it.
Best Regards and thank you in advanced.
By the way, here in my country(Guatemala) ... today, sep13 is programmers day... so happy PROGRAMMERS DAY to you all !!!!
But.. I was reading and I believe that this works but not with different images for the diff categories right?...
I mean ... can I do something like:
do you know ?
I think you would need to write some PHP to get this to work, and may be beyond you. I wouldn't have a clue where to start, but I still think it's possible, but then you would need to give each course category a unique identifier for it to work. Food for thought!
For some more information on the inner workings of the course categories' HTML see User:Frank_Ralf/Semantic_HTML3. (Unfortunately they are not lists as Mary suggested but nested tables.)
Thank you both for the help!!! ... I have learned so much just by reading your posts, thank you!.
I have managed to do this here is my code which of course only relates to my Moodle set up, but will work in any Moodle install providing you change the image file names.
I hope this all goes to help you achieve your goal!