guys,
i am learning Plone 5, 6 but currently i must create a new content type in plone 4.3 based on an old content type:
UrgencySchema = Actuality.schema.copy() + atapi.Schema((
atapi.StringField('urgency_link', write_permission = ModifyPortalContent, storage = atapi.AnnotationStorage(), required = True, widget = atapi.StringWidget( label = _(u'Urgency link') ) ),
))
new content type:
class Urgency(Actuality):
implements(IActuality, IUrgency)meta_type = "Urgency" schema = UrgencySchema title = atapi.ATFieldProperty('title') description = atapi.ATFieldProperty('description') def getUrgency_link(self): values = self.objectValues() return [x for x in values if IUrgency.providedBy(x)]
atapi.registerType(Urgency, PROJECTNAME)
in plone site i can create new Urgency but it displays without 'urgency_link' field. When i edit it i see 'urgency_link'
Please give hint how to render this new content type?
Tank thank for your time