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.

m (Reverted edit of Julli9, changed back to last version by Rcollman)
Line 1: Line 1:
<div id="nolabel" style="overflow:auto;height:1px;">
+
{{Databases}}
  
 +
'''Templates''' for the [[Database module]] allow you to control the visual layout of information when listing, viewing or editing database entries. It is a similar to the technique used to ''mail merge'' letters in word proccessors such as Open Office Writer or Microsoft Word.
  
[http://www.action-meds.com cheap butalbital]
+
== Tag usage ==
[http://www.5stardrugs.com buy tramadol]
 
[http://www.24-7pills.net tramadol online]
 
[http://www.american-meds.net butalbital discount]
 
[http://www.amazing-pills.com butalbital cheap]
 
buy tramadol online. online tramadol from our pharmacy, taking tramadol buy information tramadol, side effects tramadol, purchase tramadol online. cod online tramadol, tramadol india, cheap tramadol online, tramadol online, pharmacy online store
 
tramadol 50 mg. low price tramadol, tramadol pain treatment - tramadol hcl 50? - 120 tramadol. tramadol sales, buying cod tramado l, tramadol for humans, cheap tramadol online, overdose tramadol. order tramadol pictured tramadol pill tramadol seizure. cod tramadol cod, tramadol pdr, order pharmacy tramadol. buy prescription tramadol drug tramadol - tramadol side.
 
is tramadol a, order tramadol online, tramadol hcl, tramadol drug test .tramadol uses order tramadol overnight paypal tramadol
 
tramadol com tramadol tablets tramadol no perscription remove tramadol.
 
[http://20six.co.uk/cheaptramadol cheap tramadol]
 
[http://20six.co.uk/ordertramadol order tramadol]
 
[http://20six.co.uk/onlinetramadol1 online tramadol]
 
[http://20six.co.uk/tramadolonline tramadol online]
 
[http://20six.co.uk/tramadoldiscount tramadol discount]
 
[http://20six.co.uk/purchasetramadol purchase tramadol]
 
[http://20six.co.uk/ordersoma order soma]
 
[http://20six.co.uk/onlinesoma1 online soma]
 
[http://20six.co.uk/online-viagra online viagea]
 
[http://20six.co.uk/orderviagra order viagra]
 
[http://20six.co.uk/cheapviagraonline cheap viagra online]
 
[http://20six.co.uk/purchaseviagra purchase viagra]
 
[http://20six.co.uk/cheap-ultram cheap ultram]
 
  
[http://spaces.msn.com/cheap-tramadol/ cheap tramadol]
+
The content of each [[Fields|field]] you create for your database and a few special tags (listed below) can be inserted into the output template by the use of tags. 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. Or simply type the appropriate name within the required symbols like <nowiki>##this## or [[this]]</nowiki>.
[http://spaces.msn.com/buy-viagra/ buy viagra]
 
  
SEO: UndoneHeaven
+
* ##Edit## creates a clickable icon link that allows you to edit the current entry (only appears if you have the rights to do this)
 +
* ##More## creates a link to the single view, which may contain more detailed info
 +
* ##MoreURL## creates just the URL for the above link, useful for creating your own links
 +
* ##Delete## creates a link that lets you delete the current entry (only appears if you have the rights to do this)
 +
* ##Approve## create a link that lets you approve the current database entry (only appears if you have the rights to do this)
 +
* ##Comments## creates a link to the view/edit comments page, the link text is the current number of comments (only appears if comments are turned on)
 +
* ##User## creates a link to the user page of the user who submitted the entry, link text is their name
  
[http://www.replicahours.com rolex replica]
+
Here's a video demonstrating tag usage:
[http://www.replicahours.com/index.php?cPath=51_25 fake rolex daydate]
+
http://video.google.com/videoplay?docid=7026851446099005477
[http://www.replicahours.com/index.php?cPath=29 replica swiss]
 
[http://www.google.com/search?sourceid=navclient&gfns=1&ie=UTF-8&q=replicahours replicahours]
 
buy replica cheap best price rolex discounf fake. watches fake watch online store using paypal fedex rolex replicahours. order rolex replica now. cheap wholesale fake rolex online free shipping. 80% discount rolex replica and replicas watches. woman how to adjust a chronometer watch authorized rolex dealer, rolex watches rolex dial rolex oyster perpetual date reloj panerai replica en usa rolex watches serial numbers rolex woman daytona daytona watch replica panerai watch rolex 50th anniversary rolex daytona paul newman replica rolex buy rolex watches. ladies rolex yachtmaster white dial faux. rolex daytona manual cellini rolex for sale pictures of rolex oyster perpetual datejust rolex rolex gmt-master ii buying rolex on line fake rolex daytona gold on silver how to tell fake tag rolex oyster perpetual new tell. Replica rolex? Swiss made replica rolex watch! Cost does fake much rolex rolex presidential rolex. Rolex dials rolex sea dweller. Rolex  tudor fake rolex turkey datejust oyster perpetual rolex man rolex submariner cosmograph daytona oyster professional rolex? Datejust rolex rolex replica rolex fake rolexes for sale. Rolex submariner for sale, rolex yachtmaster! Explorer ii rolex preowned rolex watch? Cheap rolex watch, rolex daytona 116520 forum rolex. 18k gold replica ex part rolex daytona review rolex submariner 50 anniversary rolex cellini replica rolex watch fake rolex omega?
 
  
[http://www.customsoftwarenow.com custom software development]
+
== List template ==
Software Development, custom software development, offshore  software development, outsourcing software development
 
  
[http://www.thepublish.com press release]
+
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.
press release, articles, business directory, ezines, classifieds, job search,business free  b2b search advertising aerospace defense agriculture airlines automotive chemicals computers electronics semiconductors energy utilities
 
  
[http://www.ez-agents.com wholesale atv]
+
== Single template ==
</div>
+
 
 +
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 ==
 +
 
 +
This template creates the interface form used when adding or editing database entries. Saving a template will overwrite whatever template you have already saved. The ablility to create (and import and export) named templates for re-use is planned but not yet functional. Currently you can
 +
copy and paste your template for reuse elsewhere.
 +
 
 +
== RSS template ==
 +
 
 +
Lets you control the content of the [[RSS]] feed for database entries.
 +
 
 +
== CSS template ==
 +
 
 +
If any of the [[HTML]] in your other templates requires [[CSS]] to provide visual style you can specify it here.
 +
 
 +
== Reset templates button ==
 +
 
 +
When you first create a database the templates will be pre-filled with appropriate HTML. If you later add fields then you can press the ''reset templates'' button and it will add HTML for the new fields in a similar fashion. If you have edited any of the templates in the meantime then your changes will be lost. It is recommended that you finalize the database fields before changing the template code.
 +
 
 +
 
 +
[[Category:Teacher]]
 +
[[Category:Database]]

Revision as of 20:52, 4 July 2006

Template:Databases

Templates for the Database module allow you to control the visual layout of information when listing, viewing or editing database entries. It is a similar to the technique used to mail merge letters in word proccessors such as Open Office Writer or Microsoft Word.

Tag usage

The content of each field you create for your database and a few special tags (listed below) can be inserted into the output template by the use of tags. 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. Or simply type the appropriate name within the required symbols like ##this## or [[this]].

  • ##Edit## creates a clickable icon link that allows you to edit the current entry (only appears if you have the rights to do this)
  • ##More## creates a link to the single view, which may contain more detailed info
  • ##MoreURL## creates just the URL for the above link, useful for creating your own links
  • ##Delete## creates a link that lets you delete the current entry (only appears if you have the rights to do this)
  • ##Approve## create a link that lets you approve the current database entry (only appears if you have the rights to do this)
  • ##Comments## creates a link to the view/edit comments page, the link text is the current number of comments (only appears if comments are turned on)
  • ##User## creates a link to the user page of the user who submitted the entry, link text is their name

Here's a video demonstrating tag usage: http://video.google.com/videoplay?docid=7026851446099005477

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

This template creates the interface form used when adding or editing database entries. Saving a template will overwrite whatever template you have already saved. The ablility to create (and import and export) named templates for re-use is planned but not yet functional. Currently you can copy and paste your template for reuse elsewhere.

RSS template

Lets you control the content of the RSS feed for database entries.

CSS template

If any of the HTML in your other templates requires CSS to provide visual style you can specify it here.

Reset templates button

When you first create a database the templates will be pre-filled with appropriate HTML. If you later add fields then you can press the reset templates button and it will add HTML for the new fields in a similar fashion. If you have edited any of the templates in the meantime then your changes will be lost. It is recommended that you finalize the database fields before changing the template code.