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>
<th align="left" class="header">header1
<th align="left" class="header">header2
<th align="left" class="header">header3
<th align="left" class="header">header4
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**
<table class="modulesdata generaltable" align="center" border="1" cellpadding="5" width="80%"> <tbody>
<th class="header" align="left">Date
<th class="header" align="left">Write Stuff Here
<th class="header" align="left">Options
REPEATED ENTRY SECTION:
<td>##Edit## ##More## ##Delete## ##Approve##</td></tr>
**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.
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.
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
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.
(Edited to attach updated file according to Robert's suggestion.)
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.