The default layout for the display templates in Moodle is usually not refined enough to use on a community site. Since the templates are automatically generated, the display is usually too generic. We'll look at how to change the List template in this example. Many of the skills we will learn here will enable us to modify other templates.
<div class="defaulttemplate"> <table style="width: 65%; height: 88px;" border="1" cellspacing="1" cellpadding="5" align="left"> <tbody> <tr> <td width="25%" align="left" valign="middle"> <strong>Resource</strong></td> <td width="30%" align="left" valign="middle"> <strong>Synopsis</strong></td> <td width="15%" align="left" valign="middle"> <strong>Date</strong></td> <td width="20%" align="left" valign="middle"> <strong>Categories</strong></td> <td width="10%" align="left" valign="middle"><strong>Edit / View</strong></td> </tr> </tbody> </table> </div>
##edit##
to tell Moodle to display the edit icon, instead of the word "edit". The available action buttons are listed in the Actions list in the Available Tags window on the left side.<div class="defaulttemplate"> <table style="width: 100%; height: 88px;" border="1" cellspacing="1" cellpadding="5" align="left"> <tbody> <tr> <td width="25%" align="left" valign="top">[[Resource Name]]</td> <td width="30%" align="left" valign="top">[[Synopsis]]</td> <td width="15%" align="left" valign="top">[[Date Added]]</td> <td width="20%" align="left" valign="top">[[Categories]]</td> <td width="10%" align="left" valign="top">##edit## ##more##</td> </tr> </tbody> </table> </div>
You have just modified the display template for the database list view. Creating a useable, nice looking interface for the database will increase the likelihood of community members engaging with the activity and sharing resources with each other.
Improve the View Single template to make it easier to read. Add a border around the table and alternate the background shading in every other row. See the following image for an example.
As you build tools for your community, refer to the framework from Chapter 1, Getting Started with Moodle. In your community site, how will you measure the impact of the "community of practice" on your organization? What problems are you hoping to solve by implementing a community of practice?
18.119.103.204