In our Onkopedia portal we use a slightly customized comments portlet registered as
The standard comments viewlet is disabled.
However our comment viewlet is rendered twice. However the code of the underlaying comments.py functionality is only executed once (e.g. the
has_replies() is called only once from the comments.pt template).
There is no Diazo transformation in the game here (stock Barceloneta).
Are they both in the same viewlet manager?
Do you see anything (weird) at
onkopedia.comments are registered within the same manager but as said:
plone.comments is disabled.
So both the viewlets you see are from the same viewlet manager, and you are sure that it is 'plone.comments' you see (not a duplicate of onkopedia.comments) ?
@manage-viewlets show only one viewlet?
There is only one viewlet shown within the viewlet manager view. And said: the code/template comes from our portlet (verified).
My guess is a issue with the diazo-rules. Do you still see it twice with
But there is no Diazo involved here...this is with plain Barcloneta
Barceloneta is 'full of diazo rules'
This file has been truncated.
<?xml version="1.0" encoding="utf-8"?>
<theme href="index.html" />
<notheme css:if-not-content="#visual-portal-wrapper" />
<!-- Attributes -->
<copy attributes="*" css:theme="html" css:content="html" />
<!-- Base tag -->
<before css:theme="title" css:content="base" />
<!-- Title -->
<replace css:theme="title" css:content="title" />
<!-- Pull in Plone Meta -->
<after css:theme-children="head" css:content="head meta" />
<!-- Don't use Plone icons, use the theme's -->
Again: Do you still see it twice with
?diazo.off=1 (only works in development-mode)?
Only one comment viewlet with Diazo disabled: