provide meta tags, esp. keywords
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3643 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
0a4f1de2eb
commit
fd0a532fbc
1 changed files with 9 additions and 0 deletions
|
@ -154,6 +154,15 @@ class BaseView(object):
|
|||
def getUidForObject(self, obj):
|
||||
return util.getUidForObject(obj)
|
||||
|
||||
@Lazy
|
||||
def meta_content(self):
|
||||
keywords = ['loops']
|
||||
if self.virtualTargetView:
|
||||
keywords.append(self.virtualTargetView.getKeywords())
|
||||
return dict(keywords=', '.join(keywords))
|
||||
|
||||
def getKeywords(self):
|
||||
return self.context.title.split()
|
||||
|
||||
pattern = re.compile(r'[ /\?\+%]')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue