from plone.app.portlets.portlets.news import Renderer as NewsRenderer from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile class Renderer(NewsRenderer): _template = ViewPageTemplateFile('templates/news.pt') def crop_text(self, text, num): if len(text) > num: return text[:num]+"..." return text