Page 1 of 1

Comments module with News module

Posted: Thu Jul 19, 2007 2:23 pm
by rodolfo
I found the following issues with the Comments module:

1) After inserting a comment with the form, i.e. after pressing the "Submit" button (but also pressing the "Cancel" button) in the following News Detail Template

{$entry->title}



{eval var=$entry->content}



{cms_module module='comments' modulename='News' pageid=$entry->id dateformat='d/m/Y, H:i' lang='it_IT'}



{$entry->printlink}


{if $return_url != ""}
{$return_url}
{/if}


the {eval var=$entry->content} line causes an error because "$entry->content" is empty.
For the moment I could fix the error removing the "eval var=" part.
This means that the page should show the detail of the news again, but it doesn't. I have e.g. to click on the summary "more" link again to make the detail appear again.

2) After the first expansion of the Comments form, the form remains expanded: is it possible to make it return to the collapsed state without clicking onthe link again?

3) If I set the dateformat parameter with e.g. an "F" for the name of the month, that name i salways shown in English. Is it possible to make it appear in another language (I also set lang="it_IT" with no effect)?

4) If I insert e.g. an apostrophe ( ' ) in the Comments form, it is shown as "'".

thanks
Rodolfo

Re: Comments module with News module

Posted: Mon Jul 23, 2007 3:02 am
by Dr.CSS
Is that all of your template and the only one your using?... such as for summary...

Re: Comments module with News module

Posted: Thu Jul 26, 2007 8:45 pm
by rodolfo
Hi, this is the summary template:


{foreach from=$items item=entry}

{if $entry->summary}

{eval var=$entry->summary}



[{$entry->morelink}]

{else if $entry->content}

{eval var=$entry->content}

{/if}

{/foreach}