You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if we can use the INewsItem interface here. My usecase is a custom add-on that added a new "News" that extends the INewsItem.
If this lead to side effects I think we can add type selection here (with a default to "News Item").
The text was updated successfully, but these errors were encountered:
+1 but I'd suggest type selection widget to be displayed only when there are more than one enabled content types providing INewsItem, so that users don't see useless UI.
from plone.dexterity.utils import resolveDottedName
news_types = [type.id for type in api.portal.get_tool(name='portal_types').values() if hasattr(type, 'klass') and INewsItem.implementedBy(resolveDottedName(type.klass))]
The news portlet performs a search on basic Plone news using "News Item" portal type:
plone.app.portlets/plone/app/portlets/portlets/news.py
Line 86 in 3f700e1
I'm wondering if we can use the INewsItem interface here. My usecase is a custom add-on that added a new "News" that extends the INewsItem.
If this lead to side effects I think we can add type selection here (with a default to "News Item").
The text was updated successfully, but these errors were encountered: