Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

improve documentation

  • Loading branch information...
commit 0c448c3cdaf8bfb5161c1f03ee7267b56dd45a07 1 parent 1eecafa
Philip Bauer authored June 29, 2012

Showing 1 changed file with 9 additions and 3 deletions. Show diff stats Hide diff stats

  1. 12  README.txt
12  README.txt
@@ -63,18 +63,22 @@ New fields
63 63
     To use this widget we must use a List field or a Tuple field with the
64 64
     value_type as an schema.TextLine() like this::
65 65
 
66  
-        form.widget(subjects = KeywordsFieldWidget)
  66
+        from collective.z3cform.widgets.enhancedtextlines import EnhancedTextLinesFieldWidget
  67
+
  68
+        form.widget(options = EnhancedTextLinesFieldWidget)
67 69
         options = schema.Tuple(
68 70
             title=_(u"Options"),
69 71
             value_type=schema.TextLine(),
70  
-            missing_value=(,),
  72
+            missing_value=(),
71 73
             )
72 74
 
73 75
 **TokenInputFieldWidget**
74 76
     To use this Widget we must use a List field or a Tuple field with the
75 77
     value_type as a schema.TextLine() like this::
76 78
 
77  
-        form.widget(options=TokenInputFieldWidget)
  79
+        from collective.z3cform.widgets.token_input_widget import TokenInputFieldWidget
  80
+
  81
+        form.widget(subjects=TokenInputFieldWidget)
78 82
         subjects = schema.List(
79 83
             title=_(u"Categories"),
80 84
             value_type=schema.TextLine(),
@@ -87,6 +91,8 @@ New fields
87 91
     the search of elements to relate to.. if none parameter are passed, a tree
88 92
     structure is shown in the widget::
89 93
 
  94
+        from collective.z3cform.widgets.multicontent_search_widget import MultiContentSearchFieldWidget
  95
+
90 96
         form.widget(relatedItems=MultiContentSearchFieldWidget)
91 97
         relatedItems = RelationList(
92 98
             title=_(u"Related Items"),

0 notes on commit 0c448c3

Please sign in to comment.
Something went wrong with that request. Please try again.