Comments module with News module
Posted: Thu Jul 19, 2007 2:23 pm
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
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