diff --git a/Products/Faq/configure.zcml b/Products/Faq/configure.zcml old mode 100644 new mode 100755 index 0690661..c8a7dca --- a/Products/Faq/configure.zcml +++ b/Products/Faq/configure.zcml @@ -1,6 +1,7 @@ @@ -10,4 +11,10 @@ + + + diff --git a/Products/Faq/content/FaqFolder.py b/Products/Faq/content/FaqFolder.py old mode 100644 new mode 100755 index 73d777f..7ddd41d --- a/Products/Faq/content/FaqFolder.py +++ b/Products/Faq/content/FaqFolder.py @@ -3,8 +3,8 @@ from interfaces import IFaqFolder from zope.interface import implements from Products.ATContentTypes.atct import ATFolder, ATFolderSchema -from Products.Archetypes.public import IntegerField, Schema, \ - IntegerWidget, registerType +from Products.Archetypes.public import Schema, registerType +from Products.Archetypes.atapi import * from Products.Faq import config from Products.Faq import faqMessageFactory as _ @@ -13,18 +13,33 @@ schema = ATFolderSchema.copy() + Schema(( IntegerField('delay', - widget=IntegerWidget(description=_(u"desc_delay", - default=u"Delay for a new item."), + widget=IntegerWidget(description=_(u"desc_delay", + default=u"Delay for a new item."), label=_(u"label_delay", default=u"Delay") ), - default=7, + default=0, required=1, searchable=0, validators=('isInt',)), + + TextField("text", + required=0, + searchable=1, + allowable_content_types=('text/plain', 'text/structured', 'text/html', 'application/msword',), + default_output_type='text/html', + validators=("isTidyHtmlWithCleanup",), + widget = RichWidget( + label='Anlesertext', + label_msgid='faqfolder_label_text', + i18n_domain='faqfolder', + description='', + rows=20, + allow_file_upload=False,), + ) )) schema['description'].widget.label = _(u"label_folder", default=u"Description") -schema['description'].widget.description = _(u"desc_folder", +schema['description'].widget.description = _(u"desc_folder", default=u"The description of the FAQ category.") class FaqFolder(ATFolder): diff --git a/Products/Faq/profiles/default/jsregistry.xml b/Products/Faq/profiles/default/jsregistry.xml new file mode 100755 index 0000000..564aef7 --- /dev/null +++ b/Products/Faq/profiles/default/jsregistry.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Products/Faq/skins.zcml b/Products/Faq/skins.zcml old mode 100644 new mode 100755 index fe8d950..c454cf3 --- a/Products/Faq/skins.zcml +++ b/Products/Faq/skins.zcml @@ -6,4 +6,5 @@ + \ No newline at end of file diff --git a/Products/Faq/skins/faq/faqfolder_view.pt b/Products/Faq/skins/faq/faqfolder_view.pt old mode 100644 new mode 100755 index 8a59b89..5b3e185 --- a/Products/Faq/skins/faq/faqfolder_view.pt +++ b/Products/Faq/skins/faq/faqfolder_view.pt @@ -8,7 +8,7 @@ lang="en-US" metal:use-macro="here/main_template/macros/master" i18n:domain="faq"> - +