For those who want the display of Moodle Site's Modules and plugins

For those who want the display of Moodle Site's Modules and plugins

by alex ang -
Number of replies: 9
Like the display of Moodle Site's Modules and Plugins
Parse the code below to the header section in listing template or/and single template .

<table width="80%" cellpadding="5" border="1" align="center" class="modulesdata generaltable"> <tbody>
<tr>
<th align="left" class="header">header1
</th>
<th align="left" class="header">header2
</th>
<th align="left" class="header">header3
</th>
<th align="left" class="header">header4
</th>
</tr></tbody>
</table>
Average of ratings: -
In reply to alex ang

Re: For those who want the display of Moodle Site's Modules and plugins

by Chris Porter -
Okay, I've been searching for how to do this all day and I've finally figured it out. I am self-taught when it comes to HTML and all of this business, so I really don't know what all of this means . . . I just know it works.

The following HTML code worked for me for the list template. I noticed the WYSIWYG editor likes to screw up the code once you save it, so I started copying my trial and error code into Microsoft Word until I figured it out. I'm sure there's an easier way, but here's what worked for me:

**Make sure you edit all three sections using the HTML editor**

HEADER SECTION:

<table class="modulesdata generaltable" align="center" border="1" cellpadding="5" width="80%"> <tbody>

<tr>

<th class="header" align="left">Date

</th>

<th class="header" align="left">Write Stuff Here

</th>

<th class="header" align="left">Options

</th>

</tr>


REPEATED ENTRY SECTION:

<tr><td>Date</td>

<td>Write_stuff_here</td>

<td>##Edit## ##More## ##Delete## ##Approve##</td></tr>



FOOTER:

</tbody></table></div><hr />


**PLEASE NOTE** that if you go back and fix stuff - the editor will add code that you didn't put there orginally. It was a huge pain to copy and paste every single time, but I'm very happy that I finally figured it out.
In reply to Chris Porter

Re: For those who want the display of Moodle Site's Modules and plugins

by uday ramakrishna -

Hi

This is a great article but is there a way to restrict users from adding new contents to a database by restricting it to only the admin users? i.e we want to remove the additional tab add entry which normally appears on all the databases created? I tried the admin stuff but there was no control there, nor did the assign roles work.

Best Regards

Uday

In reply to uday ramakrishna

Re: For those who want the display of Moodle Site's Modules and plugins

by Leticia Maimann-Roland -
Uday,
at Moodle 1.6, on 'Editing Database' you can find Participants = 'Teachers' or 'Teachers and Students'. Setting it to 'Teachers' avoid students to insert items on your database.

I'm sure there is something similar at Moodle 1.7 wink


In reply to Leticia Maimann-Roland

Re: For those who want the display of Moodle Site's Modules and plugins

by Roel Cantada -

For Moodle 1.7 go to the Database settings page.  Then Roles tab, and select Students.  Then click Overrides.  You will be presented with the capabilities associated with the instance of this database.  Prevent write entry and any other capability.

Or you could create a role with the above capabilities setting and assign this to your students in the Roles assign tab.

In reply to Chris Porter

Re: For those who want the display of Moodle Site's Modules and plugins

by João Fernandes -
Hi,
thanks a lot for the code. Do you know how to add the javascript effect in list mode?
regards
In reply to João Fernandes

Re: For those who want the display of Moodle Site's Modules and plugins

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi João,

Please find attached the modules and plugins database preset, which includes a Javascript template.

(Edited to attach updated file according to Robert's suggestion.)
In reply to Helen Foster

Re: For those who want the display of Moodle Site's Modules and plugins

by Robert Allerstorfer -
Helen,

to be complete, the preset.zip files should now also include a "asearchtemplate.html" file. This does not harm to older Moodles, but gives you advantage to recent ones.

Best,
Robert
In reply to Robert Allerstorfer

Re: For those who want the display of Moodle Site's Modules and plugins

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Thanks Robert, I've followed your suggestion and updated the attached preset. (What we really need is a database activity on moodle.org for sharing database presets - see MDLSITE-303. wink)
In reply to Helen Foster

Re: For those who want the display of Moodle Site's Modules and plugins

by João Fernandes -
Thanks a lot Helen!
regards
J