))
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
In Plone >= 5 you can basically just make your content type in the Dexterity Control panel and then export / copy the code to your content type (until you know all the syntax).
After that, I would make a browser view for your content type.
@zopyx we will have Plone 5 after about half year enough time to learn Plone 5. @espenmn Thank you very much for your long advice! i will study your text appreciated!
for Plone 4.3 i editted
.../our_custom_theme/newsitem_view.pt
adding somewhere the code: