label_msgid="label_image_caption", size="40", i18n_domain='EEAContentTypes', maxValues=5, ), i18n_domain="plone", searchable=True, validators=('maxWords',) ), public.TextField( name='imageNote', index="ZCTextIndex|TextIndex:brains", widget=public.TextAreaWidget( label="Image Note", description="Enter a note about this image.", label_msgid='EEAContentTypes_label_imageNote', description_msgid='EEAContentTypes_help_imageNote', i18n_domain='EEAContentTypes', ) ), public.StringField( name='imageSource', index="FieldIndex:brains", widget=public.StringWidget( label="Image Source", description="Enter the source of this image.", label_msgid='EEAContentTypes_label_imageSource', description_msgid='EEAContentTypes_help_imageSource', i18n_domain='EEAContentTypes',
from Products.ATContentTypes.content import schemata from Products.ATContentTypes.content import folder from Products.ATContentTypes import ATCTMessageFactory as _at from raptus.article.core.interfaces import IArticle from raptus.article.core.config import PROJECTNAME from raptus.article.core import RaptusArticleMessageFactory as _ ArticleSchema = folder.ATFolderSchema.copy() + atapi.Schema(( atapi.TextField( 'text', primary=True, required=False, searchable=True, storage=atapi.AnnotationStorage(), validators=('isTidyHtmlWithCleanup', ), default_output_type='text/x-html-safe', widget=atapi.RichWidget( description='', label=_at(u'label_body_text', default=u'Body Text'), rows=25, allow_file_upload=zconf.ATDocument.allow_document_upload), ), atapi.BooleanField( 'hideTitle', required=False, languageIndependent=True, default=False, storage=atapi.AnnotationStorage(), schemata='settings', accessor='HideTitle', widget=atapi.BooleanWidget(
required=0, vocabulary='fieldsDisplayList', widget=atapi.SelectionWidget( label=_(u'Citizen email field'), description=_( u"Select which field of the form has the citizen's email"), ), ), atapi.TextField( 'message_top_description_spanish', languageIndependent=True, schemata='messages', searchable=0, required=0, allowable_content_types='text/plain', default_output_type='text/plain', default_content_type='text/plain', widget=atapi.TextAreaWidget( label=_(u'Override the value of the payment title in spanish'), description= _(u"Write here the spanish text that will override the default name of the payment coming from the payment service configuration" ), ), ), atapi.TextField( 'message_top_description_basque', languageIndependent=True, schemata='messages', searchable=0, required=0, allowable_content_types='text/plain', default_output_type='text/plain',
widget=atapi.StringWidget( label=_(u'Poi_label_tracker_title', default=u"Tracker name"), description=_( u'Poi_help_tracker_title', default=u"Enter a descriptive name for this tracker"), ), required=True, accessor="Title", searchable=True), atapi.TextField( name='description', widget=atapi.TextAreaWidget( label=_(u'Poi_label_tracker_description', default=u"Tracker description"), description=_(u'Poi_help_tracker_description', default=u"Describe the purpose of this tracker"), ), use_portal_factory="1", accessor="Description", searchable=True, allowable_content_types=('text/plain'), ), atapi.TextField( name='helpText', allowable_content_types=('text/plain', 'text/structured', 'text/html', 'application/msword'), widget=atapi.RichWidget( label=_(u'Poi_label_helpText', default=u"Help text"), description=_( u'Poi_help_helpText', default=(u"Enter any introductory help text you'd like to "
CollageSchema = atapi.BaseContent.schema.copy() + atapi.Schema(( atapi.StringField( name='title', searchable=True, widget=atapi.StringWidget( label='Title', label_msgid='label_title', i18n_domain='plone', ) ), atapi.TextField( name='description', searchable=True, widget=atapi.TextAreaWidget( label='Description', label_msgid='label_description', i18n_domain='plone', ) ), atapi.BooleanField( 'show_title', accessor='getShowTitle', widget=atapi.BooleanWidget( label=_(u'label_show_title', default=u"Show title"), description=_( u'help_show_title', default=u"Show title in page composition." ) ), default=1,
'This image will be shown when this banner is active.'), label=_('Image'), show_content_type=False)), atapi.StringField('imageUrl', required=False, searchable=False, default="http://", widget=atapi.StringWidget(description=_( 'Instead of uploading an image, you may enter' ' the URL of an image hosted on another server.'), label=_('Image URL'), maxlength='511')), atapi.TextField( 'text', required=False, validators=('isTidyHtmlWithCleanup', ), default_output_type='text/x-html-safe', widget=atapi.RichWidget(label=_('Body'), ), ), )) # Set storage on fields copied from ATContentTypeSchema, making sure # they work well with the python bridge properties. CarouselBannerSchema['title'].storage = atapi.AnnotationStorage() CarouselBannerSchema['description'].storage = atapi.AnnotationStorage() CarouselBannerSchema['description'].widget.visible = { 'view': 'hidden', 'edit': 'hidden' } CarouselBannerSchema['remoteUrl'].widget.label = _('Link URL')