Loading...
 
Skip to main content

Threaded comments second level not showing

Status
Closed
Subject
Threaded comments second level not showing
Version
13.x Regression
Category
  • Release Blocker
Feature
Comment
Resolution status
Confirmed
Submitted by
Nelson Ko
Lastmod by
gezza
Rating
(0)
Description
When you reply to a comment, the threaded one (i.e. the one at the second level) is not showing.
Solution
r51651 fixed it
Workaround

note: mani is working on a fix

gezza's note: i also looked at it, maybe you find my findings useful. This seems to me a Tiki issue, not a smarty one.
In templates/comments/list.tpl on line 93 there is a smarty include.

Copy to clipboard
{include file='extends:layouts/internal/layout_view.tpl|comment/list.tpl' comments=$comment.replies_info.replies cant=$comment.replies_info.numReplies parentId=$comment.threadId}


I you change templates\layouts\internal\layout_view.tpl to this:

Copy to clipboard
{if zone_is_empty('left')} {block name=content}{/block} {else} {block name=content}{/block} {/if}


than the nested comments are displayed. You can change the zone name in zone_is_empty to any other (eg: rigth, bottom, etc), it still works.
Could not get further with this.

mani's note:

This issue is because of the layout view used for the comments.
for the second level and more than that the layout_view.tpl is called.

In layout_view.tpl the content is empty so the comments are not showing.

As per previous we can call the same ie(comments/list.tpl) file to show the next level comments.

But in that method also the header footer added for each comment because in top of comment/list.tpl the layout_view.tpl is extended.

Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5242
Created
Thursday 15 May, 2014 18:31:18 UTC
by Nelson Ko
LastModif
Thursday 19 June, 2014 13:22:09 UTC


Show PHP error messages