34 Commits

Author SHA1 Message Date
vyshane
6b9dbb377f Textarea field now uses functions use_html_editor() and print_editor_config()
form /lib/weblib.php. It's been decided that the minimum requirements for the
database module will be 1.5.3+ stable. Will commit updates to the above two
functions to 1.5.3+ stable once they have been tested on stable.
2006-03-15 03:11:25 +00:00
vyshane
d02d138070 Clicking on a template tag e.g. [[field_name]] now adds the template tag to
the HTMLArea editor in the template views. This is not currently working in
source code mode of the editor.

Added equivalent of use_html_editor() and print_editor_config() from
/lib/weblib.php to textarea field class. We use a copy in that class instead of
calling the functions in /lib/weblib.php because we want the data module to be
compatible with Moodle 1.5. This is not ideal, but it is a necessary evil.

Updated the textarea field class to use the correct path to
/lib/editor/htmlarea/htmlarea.php.
2006-03-14 05:32:41 +00:00
moodler
7261578f34 Fixing typos 2006-03-10 09:08:04 +00:00
skodak
107e7612b5 short php tags once more 2006-03-07 21:46:34 +00:00
vyshane
459e90230f Fixed bug: wrong parameter for input field (max size of uploaded file) 2006-03-07 08:53:40 +00:00
vyshane
4e53996865 Made script work with 1.5 2006-02-24 06:14:39 +00:00
toyomoyo
f055d14bed fix for string type sort error, bug 4823 2006-02-23 02:34:46 +00:00
vyshane
e5689267df Fixed bug in RSS xml file generation.
Fixed bug in file and picture links.
2006-02-20 03:02:32 +00:00
vyshane
af25f45e1a Cleaning up xhtml markup. Code now validates for xhtml 1.0 transitional. 2006-02-20 02:15:45 +00:00
vyshane
a684d28b29 Fixed notice in picture field edit view.
Made the field type icons clickable to edit the field.
2006-02-16 08:15:00 +00:00
vyshane
bbe39b6ca9 Updated lang/en/data.php.
Removed hard coded message strings from scripts and moved them to the language file.
Fixed a display bug in multimenu field.
Removed rounded help buttons from fields, made the fields use html title to
display the descriptions instead.
2006-02-09 04:44:56 +00:00
vyshane
f9eab7b0c9 Fixed bug in /mod/data/filter.php - content list for autolinking was not being
generated properly.

Updated /mod/data/fields.php - deletion of a field now also deletes
data_contents and any files associated as well.

Add/update/delete fields - template now gets updates in the following cases:
1) Deletion: remove template tags for the field from all templates
2) Edit: search and replace template tags for the field in all templates
3) Add: append template tag for field into the signe and rss templates, but
only if these templates are not empty. Otherwise we'd rather the user uses the
automatic template generation facility, which produces better display.
2006-02-06 09:13:37 +00:00
moodler
653bcc596c Added a link to the listtemplate images to the full record 2006-02-06 03:06:16 +00:00
moodler
cd2f695055 Added a parameter to display_browse_field() to pass the template name
to the fields, so they can return different output for different templates.

Picture now has two heights/widths for different templates
2006-02-06 02:49:46 +00:00
vyshane
173b1b1261 Input field size cleanups. 2006-02-03 09:22:23 +00:00
vyshane
0bbc6f5700 Added autolinking. 2006-02-03 08:04:40 +00:00
vyshane
bad7f9e00a Removed debugging output from /mod/data/lib.php
New icons for field types
2006-02-02 10:12:30 +00:00
vyshane
c87fbb27e1 Removed autolink support from radio button field (not needed).
Fixed bug for empty muti menu and multi checkbox fields.
Added "Choose..." as first item in single selection menu. Added relevant
string in en language.
Updated /mod/data/lib.php, function store_data_content() so that we store
empty content for fields too.
2006-02-02 06:28:17 +00:00
vyshane
88f47f81bc Removed autolink form radio button field (not needed). 2006-02-01 06:59:57 +00:00
vyshane
2806b95ca2 Modification to make field use content1 column in data_content table 2006-02-01 05:13:01 +00:00
vyshane
2c5c1418bb Added multi-selection menu field support. 2006-02-01 05:09:59 +00:00
vyshane
4728968fc7 Checkbox field support 2006-02-01 05:08:51 +00:00
vyshane
f1ad19bcae Fixed update display bug in the menu field.
Updated following fields so that they do not pack data into
data_content.content, but use data_content.content, data_content.content1,
etc:

- URL field
- File field
- Picture field

Note that above changes to the way data is stored means that the new
implementation is not compatible with previous version.

Updated textarea field. Added relevant help messages. Added richtext editor
support. Removed ability to restrict allowed formats for the textarea field.

Misc bug fixes and display tweaks.
2006-01-31 04:25:46 +00:00
vyshane
113782126c Modifications to use new columns in data_content table
Modifications to support different text formats
2006-01-25 09:21:17 +00:00
moodler
e70813cf37 Cleaned up text field params (textarea does this now) 2006-01-24 02:20:51 +00:00
moodler
35bcb325f6 Added textarea field type.
Committed by Vy-Shane <vyshane@moodle.com>
2006-01-20 02:38:11 +00:00
toyomoyo
9a1a27b8fa removing \ 2006-01-20 02:26:37 +00:00
moodler
8e71ea9540 fixing conflicts 2006-01-20 01:53:50 +00:00
moodler
bfadc7ef00 New field for menus 2006-01-19 08:22:01 +00:00
moodler
f5d4ea3242 New field type for radio buttons 2006-01-19 08:18:27 +00:00
moodler
add19b0736 Cleaned up test code.
Committed by Vy-Shane Sin Fat <vyshane@moodle.com>
2006-01-19 03:11:12 +00:00
moodler
b4ede3f342 Committing icon.gif. This is just a temporary icon. We need to replace it eventually.
Vy-Shane Sin Fat <vyshane@moodle.com>
2006-01-18 08:36:15 +00:00
moodler
9e1ae324f9 Textarea field type support for the data module.
Committed by Vy-Shane <vyshane@moodle.com>
2006-01-18 08:31:14 +00:00
moodler
3d4b223a85 NEW MODULE FROM MOODLE.COM - DATABASE !
Finally, we have an early version good enough for everyone to
start banging on to help us polish it up and find bugs.

Please take a look and file bugs in the bug tracker under "Database module".

We urgently need
    - new icons for existing field types
    - testing on PostgreSQL install


Coming soon (?):

    - Many more field types:  calculation, checkbox, relation, date, datetime,
                              time, email, group, list, user, number, richtext
      (Please let us know if you are interested in developing any of these)

    - A way to save and restore "presets", which are field/template sets

    - Backup/Restore support

    - Groups Support

    - RSS support

Many thanks to Yu for all the hard work under my whip.
2005-12-02 07:50:26 +00:00