Comments module with News module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
rodolfo

Comments module with News module

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Comments module with News module

Post by Dr.CSS »

Is that all of your template and the only one your using?... such as for summary...
rodolfo

Re: Comments module with News module

Post 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}

Locked

Return to “Modules/Add-Ons”