Difference between revisions of "Database templates"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Database templates.

(tag usage)
Line 4: Line 4:
 
To use the tags found on the left side... use the HTML viewer, place your cursor in the text area of your target edit and then click on the tag you want to place.
 
To use the tags found on the left side... use the HTML viewer, place your cursor in the text area of your target edit and then click on the tag you want to place.
  
##Edit## - > launches the edit interface when viewing
+
* ##Edit## - > launches the edit interface when viewing
##More## - > don't know
+
* ##More## - > don't know
##Delete## - > challenges before deletion
+
* ##Delete## - > challenges before deletion
##Approve## - > Allows admin/teacher to approve the database entry  
+
* ##Approve## - > Allows admin/teacher to approve the database entry  
:I find no relation to any grading or scoring for the person who submitted the entry... so teacher approval doesn't translate into any student reward? Tough sell to get younger students to do this exercise without direct translation into tokens for their grades. Pedagogy aside, tokens is how most of the capitalistic world functions and most lower grade students understand grades  as a calculation of points.--[[User:Dennis Daniels|Dennis Daniels]] 20:16, 25 May 2006 (WST)
 
  
== list template tab ==
+
== List template ==
Defines browsing interface for multiple entries
 
  
mod/data/templates.php?d=1&mode=listtemplate
+
This template allows you to control the fields used and their layout when viewing multiple entries at once (e.g. search results). It is possible that this view may simply provide an overview with more detailed information available by clicking on an entry to access the single view of the entry.
  
== single template tab ==
+
== Single template ==
Defines browsing interface for a single entry.
 
  
== add template tab ==
+
This is used to display a single entry at a time and so has more space for display and can use, for example, larger versions of images or optionally provide more information than shown in the list view.
 +
 
 +
== Add template ==
 
Defines the interface when editing entries
 
Defines the interface when editing entries
What does the reset template do? No challenge before resetting so be careful...
 
  
 
== RSS template tab ==
 
== RSS template tab ==
Line 29: Line 27:
 
== CSS template tab ==
 
== CSS template tab ==
 
Defines local CSS styles for the other templates
 
Defines local CSS styles for the other templates
How is stuff being saved? And, wouldn't an existing CSS pre-loaded by nice? Hand coding CSS? Copy and paste?
 
mod/data/templates.php?d=1&mode=csstemplate
 
 
== Usage Issues ==
 
  
Can't tell how or where the templates are being saved or what the tags do.--[[User:Dennis Daniels|Dennis Daniels]] 16:16, 25 May 2006 (WST)
 
  
I personally think each php with a "mode" should have its own help page...--[[User:Dennis Daniels|Dennis Daniels]] 16:14, 25 May 2006 (WST)
+
== Reset templates button ==
  
AJAX anyone? Seems like a great place for it... :)
 
  
It occurred to me that setting up templates could be a matter of copying and pasting HTML with the database tags ... testing the idea now... --[[User:Dennis Daniels|Dennis Daniels]] 19:35, 25 May 2006 (WST)
 
===saving===
 
Are there multiple templates allowed? Can't find any interface to suggest more than one template...
 
  
 
{{stub}}
 
{{stub}}
 
[[Category:Teacher]]
 
[[Category:Teacher]]

Revision as of 20:01, 2 June 2006

Template:Databases

tag usage

To use the tags found on the left side... use the HTML viewer, place your cursor in the text area of your target edit and then click on the tag you want to place.

  • ##Edit## - > launches the edit interface when viewing
  • ##More## - > don't know
  • ##Delete## - > challenges before deletion
  • ##Approve## - > Allows admin/teacher to approve the database entry

List template

This template allows you to control the fields used and their layout when viewing multiple entries at once (e.g. search results). It is possible that this view may simply provide an overview with more detailed information available by clicking on an entry to access the single view of the entry.

Single template

This is used to display a single entry at a time and so has more space for display and can use, for example, larger versions of images or optionally provide more information than shown in the list view.

Add template

Defines the interface when editing entries

RSS template tab

Defines appearance of entries in RSS feeds

mod/data/templates.php?d=1&mode=rsstemplate

CSS template tab

Defines local CSS styles for the other templates


Reset templates button