add title attribute to layout view!
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2976 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									e6be710a0a
								
							
						
					
					
						commit
						ce96c4841b
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		|  | @ -4,7 +4,7 @@ | |||
| 
 | ||||
|     <head metal:define-macro="head"> | ||||
|       <title metal:define-macro="title" | ||||
|            tal:content="options/title|view/headTitle|context/title|default"> | ||||
|            tal:content="options/title|view/headTitle|view/title|default"> | ||||
|         Powered by Zope 3 | ||||
|       </title> | ||||
|       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||||
|  | @ -15,6 +15,7 @@ | |||
| 
 | ||||
|       <base href="." tal:attributes="href request/URL"> | ||||
|     </head> | ||||
| 
 | ||||
|     <body tal:replace="structure body" /> | ||||
| 
 | ||||
|   </html> | ||||
|  | @ -31,8 +32,9 @@ | |||
|   </style> | ||||
| </metal:css> | ||||
| 
 | ||||
| 
 | ||||
| <metal:image define-macro="image" | ||||
|            tal:define="layout view/context/template"> | ||||
|              tal:define="layout view/context/template"> | ||||
|     <img tal:attributes="src string:${view/page/resourceBase}${layout/src}; | ||||
|                          alt layout/alt; | ||||
|                          width layout/width; | ||||
|  |  | |||
|  | @ -111,6 +111,10 @@ class LayoutView(BaseView): | |||
|         manager = component.getUtility(ILayoutManager) | ||||
|         return manager.getLayouts('.'.join((self.name, key)), self.context) | ||||
| 
 | ||||
|     @Lazy | ||||
|     def title(self): | ||||
|         return self.client.title | ||||
| 
 | ||||
| 
 | ||||
| # subview providers | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm