Difference between revisions of "Database presets"

Jump to: navigation, search

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

(See also: link added)
(Adding to a top level category)
 
(18 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Databases}}
+
{{Database}}
{{Moodle 1.7}}To avoid the necessity of always having to create a new database from scratch, the database module has a presets feature. An image gallery preset is currently included in the database module to help get you started. You can create your own presets as well and share them with others.
+
{{Update}}
 +
To avoid the necessity of always having to create a new database from scratch, the database activity module has a presets feature. An image gallery preset is currently included in the database module to help get you started. You can create your own presets as well and share them with others.
  
 
==Importing a preset==
 
==Importing a preset==
 +
 
[[Image:Database preset.png|thumb|Database presets page]]
 
[[Image:Database preset.png|thumb|Database presets page]]
 
To use a preset:
 
To use a preset:
  
#On the database page, click the Presets tab.
+
# On the database page, click the Presets tab.
#Either click the "Choose file" button, browse for the preset ZIP on your computer and click Import, or choose a previously loaded preset.
+
# The usual way to import a preset is clicking the "Choose file" button and browsing to the ZIP file containing the preset (eg. "preset.zip") stored on the server. If there does not yet exist a preset ZIP file on the server, upload it from your local machine. Choose the desired preset file by clicking on its action "Choose". Finally, press the "Import" button.
#If you desire, customize the fields and templates.
+
# Alternatively, you can choose a previously loaded preset.
 +
# After the import, you can start to add or import entries. All the hard work of setting up the fields and templates has been done for you. If you desire, you can still customize the fields and templates.
  
That’s all there is to using a preset. All the hard work of setting up the templates has been done for you.
+
You will see a "Overwrite current settings" checkbox after the "Import" button has been pressed. If checked, the database activity overwrites some of its current general settings by those stored in the preset:
 +
* the "Introduction" HTML text
 +
* "Required entries"
 +
* "Entries required before viewing"
 +
* "Maximum entries"
 +
* "Comments"
 +
* "Require approval?"
 +
* rssarticles
  
 
==Exporting a preset==
 
==Exporting a preset==
Line 22: Line 32:
  
 
==See also==
 
==See also==
*[[Student projects/Presets for Database module]]
+
* [http://moodle.org/mod/data/view.php?id=7303 Database for Databases]
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=84050 Can't get columns to line up in list view] forum discussion including moodle.org presets for download
+
Using Moodle forum discussions:
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=87005 New preset, please review, and make suggestions!] forum discussion including FAQ preset for download
+
*[http://moodle.org/mod/forum/discuss.php?d=84050 Can't get columns to line up in list view] including moodle.org presets for download
 +
*[http://moodle.org/mod/forum/discuss.php?d=87005 New preset, please review, and make suggestions!] including FAQ preset for download
 +
*[http://moodle.org/mod/forum/discuss.php?d=87560 Issue 53: Encyclopedia database preset] including encyclopedia-style preset for download
 +
*[http://moodle.org/mod/forum/discuss.php?d=88727 Issue 51 - Design a Database Preset for Document Sharing] including preset for download
 +
*[http://moodle.org/mod/forum/discuss.php?d=94854#p457252 Looking for some stellar examples of Moodle courses] including book reviews preset for download
 +
*[http://moodle.org/mod/forum/discuss.php?d=89117#p511029 Restricting access to database content by user?] with research diary preset for download
  
 +
[[de:Vorlagensätze]]
 +
[[fr:Préréglages]]
 
[[ja:プリセット]]
 
[[ja:プリセット]]
 +
 +
[[Category:Plugins]]

Latest revision as of 09:02, 4 November 2011

This page requires updating for Moodle 2.0. Please do so and remove this template when finished.


To avoid the necessity of always having to create a new database from scratch, the database activity module has a presets feature. An image gallery preset is currently included in the database module to help get you started. You can create your own presets as well and share them with others.

Importing a preset

Database presets page

To use a preset:

  1. On the database page, click the Presets tab.
  2. The usual way to import a preset is clicking the "Choose file" button and browsing to the ZIP file containing the preset (eg. "preset.zip") stored on the server. If there does not yet exist a preset ZIP file on the server, upload it from your local machine. Choose the desired preset file by clicking on its action "Choose". Finally, press the "Import" button.
  3. Alternatively, you can choose a previously loaded preset.
  4. After the import, you can start to add or import entries. All the hard work of setting up the fields and templates has been done for you. If you desire, you can still customize the fields and templates.

You will see a "Overwrite current settings" checkbox after the "Import" button has been pressed. If checked, the database activity overwrites some of its current general settings by those stored in the preset:

  • the "Introduction" HTML text
  • "Required entries"
  • "Entries required before viewing"
  • "Maximum entries"
  • "Comments"
  • "Require approval?"
  • rssarticles

Exporting a preset

If you wish to share your database presets with others, you have two options:

  1. Export as a ZIP file, which can then be imported to another course or Moodle site.
  2. Save as a preset, which publishes the database for other teachers on your site to use. It will then appear in the preset list. (You can delete it from the list at any time.)

Note: Only the fields and templates of the database are copied when exporting or saving it as a preset, not the entries.

See also

Using Moodle forum discussions: