Author Topic

Pascal France

Wednesday 03 May 2006 10:33:07 am

Comment21869

Hi Fats,

And thanks for your reply.
I tried to follow your steps and I did the following template:
http://www.linuxorable.net/temp/templates/comment.tpl.txt

I did it from a copy of design/plain/override/templates/full/forum_topic.tpl

Now, as you can see here:
http://www.linuxorable.net/ez_test3.7.5/index.php/plain/nouvel_article

I can add a new comment and reply to it.
But I have two troubles:

1/ Let's say we have a "New comment". If I reply (B) to a reply (A) (which is the first reply to "New comment"), the reply B won't be below the reply A. Reply B will be displayed at the end of the replies list like all replies. ( comment_reply class has well the "container" flag set to TRUE). It seems I have to do a loop, but I don't understand which one ?

2/ I use a comment_reply class and a comment_reply.tpl (I did the good override to use this template). When I send a reply form, I don't come back to the article. The comment_reply.tpl is here:
http://www.linuxorable.net/temp/templates/comment_reply.tpl.txt

How can I set the "$main_node_id" in <input type="hidden" name="MainNodeID" value="{$main_node_id }" /> so that it is the node of the article ?

To Nabil: doest these infos answers your post ?

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish