rename plone.comments Viewlet to plone.app.discussion.comments and hide the standard plone.comments Viewlet. This is necessary because overriding plone.comments is not working anymore in Plone 4.0a3. This should be fixed properly in the future.
svn path=/plone.app.discussion/trunk/; revision=33270
This commit is contained in:
		
							parent
							
								
									7dda99a62a
								
							
						
					
					
						commit
						5ff91da15d
					
				@ -55,11 +55,11 @@
 | 
			
		||||
 | 
			
		||||
    <!-- Comments viewlet -->
 | 
			
		||||
    <browser:viewlet
 | 
			
		||||
        name="plone.comments"
 | 
			
		||||
        name="plone.app.discussion.comments"
 | 
			
		||||
        for="Products.CMFCore.interfaces.IContentish"
 | 
			
		||||
        layer="..interfaces.IDiscussionLayer"
 | 
			
		||||
        view="plone.app.layout.globals.interfaces.IViewView"
 | 
			
		||||
        manager="plone.app.layout.viewlets.interfaces.IBelowContent"
 | 
			
		||||
        view="plone.app.layout.globals.interfaces.IViewView"
 | 
			
		||||
        class=".comments.CommentsViewlet"
 | 
			
		||||
        permission="zope2.View"
 | 
			
		||||
        />
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										7
									
								
								plone/app/discussion/profiles/default/viewlets.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								plone/app/discussion/profiles/default/viewlets.xml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
<?xml version="1.0"?>
 | 
			
		||||
<object>
 | 
			
		||||
 <!-- hide standard plone comments viewlet -->
 | 
			
		||||
 <hidden manager="plone.belowcontent" skinname="Plone Default">
 | 
			
		||||
  <viewlet name="plone.comments"/>
 | 
			
		||||
 </hidden>
 | 
			
		||||
</object>
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user