solved How to re-arrange comment structure?

iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Currently the comment structure on items goes something like:

Comments DESC
Comments error/success box
Comments (Write a new comment).
The viewer has to scroll down to the bottom of the page to enter a new comment.

I'd like to reorder it to:
Comments (Write a new comment)
Comments Error/Success box
Comments DESC

So that the view can start typing comments closer to the top of the page.

Which file is that?

updated by @ilovehousemusic: 03/28/14 04:39:08AM
Developer Networks
Developer Networks
@developer-networks
10 years ago
566 posts
I believe what your looking for is here.

jrComments ==> templates ==> comment_form.tpl

or


jrComments ==> templates ==> item_list.tpl
updated by @developer-networks: 02/15/14 12:45:33AM
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
comment_form.tpl

Move the list div down below the form, and the comment_success div to wherever you want the success notice to appear.
<div id="comments">
    {jrCore_list module="jrComment" search1="comment_module = `$jrComment.module`" search2="comment_item_id = `$jrComment.item_id`" order_by="_created numerical_desc" limit="500"}
</div>
If your comment form is above the comments, you might need to change the order of the jrCore_list to suit.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Ah thank you!

Tags