bug fix: put node in view annotations
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3522 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
e074f9b659
commit
ada3e0a3ea
2 changed files with 2 additions and 1 deletions
|
@ -78,6 +78,7 @@ class NodeView(BaseView):
|
|||
super(NodeView, self).__init__(context, request)
|
||||
viewAnnotations = request.annotations.setdefault('loops.view', {})
|
||||
viewAnnotations['nodeView'] = self
|
||||
viewAnnotations['node'] = self.context
|
||||
viewConfig = getViewConfiguration(context, request)
|
||||
self.setSkin(viewConfig.get('skinName'))
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
tal:condition="nocall:target">
|
||||
<div tal:repeat="related item/children">
|
||||
<a href="#"
|
||||
tal:attributes="href string:${view/url}/.target${related/uniqueId};
|
||||
tal:attributes="href string:${view/url}/.${related/uniqueId};
|
||||
title related/description"
|
||||
tal:content="related/title">Resource Title</a>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue