/[drupal]/contributions/modules/conditional_fields/README.txt
ViewVC logotype

Contents of /contributions/modules/conditional_fields/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Mon May 11 13:27:53 2009 UTC (6 months, 2 weeks ago) by peterpoe
Branch: MAIN
Changes since 1.4: +47 -31 lines
File MIME type: text/plain
Synching HEAD.
1 $Id$
2
3 Conditional Fields:
4 --------------------
5 A Drupal module
6
7
8 Author:
9 --------------------
10 Gregorio Magini (peterpoe) <gmagini@gmail.com> - http://www.wikirandom.org
11 Initially inspired by the Explainfield module -> http://drupal.org/project/explainfield
12
13
14 Short Description:
15 --------------------
16 Content fields and groups visibility based on the values of user defined "controlling" fields.
17
18
19 Description:
20 --------------------
21 Conditional Fields allows you to assign fields with allowed values as "controlling fields" for other fields and groups. When a field or group is "controlled", it will only be available for editing and displayed if the selected values of the controlling field match the "trigger values" assigned to it.
22 When editing a node, the controlled fields are dynamically shown and hidden with javascript.
23 You can, for example, make a custom "article teaser" field that is shown only if a "Has teaser" checkbox is checked.
24
25
26 Dependencies:
27 --------------------
28 - CCK / content.module -> http://drupal.org/project/cck
29 - Fieldgroups / fieldgroups.module (included in CCK) -> Not required, but if enabled you can also set groups as controlled fields.
30
31
32 Installation:
33 --------------------
34 - Copy the unpacked folder "conditional_fields" in drupal/sites/all
35 - Go to the modules administration page (admin/build/modules) and activate it (itÕs in the CCK package)
36 - Assign the "Administer conditional fields" permission to the desired user roles.
37
38 Usage:
39 --------------------
40 Once the module is activated, a new set of options will appear in the field editing form, from where you can select which of the allowed values available will make the field "controlled". If "- Not controlling -" or no value is selected, the field will be shown as usual.
41
42 There is a "Conditional fields" tab in every content type admin page with the following options:
43
44 - User Interface options.
45 * Javascript: You can decide if you want to use javascript to dynamically disable (grey out) or hide the fields when editing a node.
46 * Animation: There are three animations currently available: show/hide (default), slide down/slide up, and fade in/fade out. You can also set the speed of the animation.
47
48 - Orphaned controlled fields settings.
49 These settings control the visibility (on node view) and editability (on node edit) of controlled fields when the controlling fields are not visible (e.g.: set to 'Hidden' in the fields display settings) or not editable (e.g.: by an access control module).
50
51 - Administrators see all fields.
52 If checked, users with 'administer conditional fields' permission will see all controlled fields of a node, even if the weren't triggered.
53
54 - Reset.
55 If checked, all conditional fields configurations for this content type will be reset (though the fields themselves will remain untouched).
56
57 Limitations:
58 --------------------
59 - Each field or group can be controlled from only one field (though a field can control any number of fields and groups). This is a bug, and will be corrected in later develpment.
60 - If the controlling field is in a group, it can only control or be controlled only by fields that are in the same group.
61 - Currently works only with checkbox, select, and radio controlling fields. Controlled fields can be of any type.
62 - There are reported incompatibilities with the following modules:
63 * tinyMCE
64 * Multigroup
65
66 To Do:
67 --------------------
68 Any help is welcome!
69 --------------------
70 Check the issue queue of this module for more information:
71 http://drupal.org/project/issues/conditional_fields
72
73 Bug: multiple controlling fields on the same field donÕt work
74 Bug: some required fields are not correctly handled (e.g.: date)
75 Testing: test different types of CCK fields for compatibility
76 Feature: allow more kinds of controlling fields (e.g.: taxonomy)
77 Feature: allow nested conditional fields
78 Feature: views integration
79 Feature: add confirmation step to the reset option in conditional fields administration page
80 Feature: tune performance (using more static variables, adding cache)

  ViewVC Help
Powered by ViewVC 1.1.2