I am writing to ask you for help.
I find my self hard to do a such a thing.
I have installed comments module to my cms, it is working properly, but i want to do one thing.
I want to change my comments template, so it would work like news template. Explanation:
News summary template, provides these things:
1) If theres to much news, it gives pages. (previous page, next page..)
2) Newer news go up.
Comments module do not provide, pages if theres to much comments and new coments go to the bottom of the page.
What i want to do is to change the code of the tmeplate in the module comments, so that it would make new comments go up, and if theres to much comments it would make pages for different of them.
I think it wont be enough only to change the template, but if you can provide me some information
Thanks,
Airidas
Code: Select all
<div id="comments">
<!-- Start Comments Display Template -->
{if $items}
<ul>
{/if}
{foreach from=$items item=entry}
<li class="{$entry->cssclass}">{if $entry->comment_title}<strong>{$entry->comment_title}</strong><br />{/if}
{if $entry->comment_author}
{* note, one could use the $entry->author_email field here, and the smarty mailto tag to generate a mailto link to this author, but it is not done by default. *}
{$entry->comment_author} - <a href="mailto:{$entry->author_email}">{$entry->author_email}</a>
{/if}
<br />
{$entry->comment_data}
</li>
{/foreach}
{if $items}
</ul>
{/if}
{if FALSE == $errormessage}
{startExpandCollapse id="name" title="$addacomment"}
{else}
{$errormessage}
{/if}
<h3>{$addacomment}</h3>
{$startform}
{$image}
{if $spamprotect}
{$spamprotectimage}<br />
{/if}
<table>
{if $spamprotect}
<tr>
<td>{$entercodetxt}:</td>
<td>{$inputentercode}</td>
</tr>
{/if}
<tr>
<td>{$yournametxt}(*):</td>
<td>{$inputyourname}</td>
</tr>
<tr>
<td>{$emailtxt}:</td>
<td>{$inputemail}</td>
</tr>
<tr>
<td>{$commenttxt}(*):</td>
<td>{$inputcomment}</td>
</tr>
<tr>
<td> </td>
<td>{$submit} {$cancel}</td>
</tr>
</table>
{$endform}
{if FALSE == $errormessage}
{stopExpandCollapse}
{/if}
<!-- End Comments Display Template -->
</div>