comments with news
comments with news
i've read all the documentation and scoured the forums and can't figure out why my comments with news is not working!
here's my detail template:
{if $entry->formatpostdate}
{$entry->formatpostdate}
{/if}
{$entry->title}
{if $entry->summary}
{eval var=$entry->summary}
{/if}
{eval var=$entry->content}
{if $entry->extra}
{$extra_label} {$entry->extra}
{/if}
{$entry->printlink}
{if $return_url != ""}
{$return_url}
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
{if $field->type == 'file'}
{* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
{/foreach}
{/if}
{cms_module module='comments'}
i can call the comments module by adding the above line in other places, but for some reason it doesn't work in the details template (and yes, this is set to the default template). anyone have any ideas??
here's my detail template:
{if $entry->formatpostdate}
{$entry->formatpostdate}
{/if}
{$entry->title}
{if $entry->summary}
{eval var=$entry->summary}
{/if}
{eval var=$entry->content}
{if $entry->extra}
{$extra_label} {$entry->extra}
{/if}
{$entry->printlink}
{if $return_url != ""}
{$return_url}
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
{if $field->type == 'file'}
{* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
{/foreach}
{/if}
{cms_module module='comments'}
i can call the comments module by adding the above line in other places, but for some reason it doesn't work in the details template (and yes, this is set to the default template). anyone have any ideas??
Re: comments with news
The help of Comments shows the following example...
RonnyExample of using with News module
Put this in your News "Detail Template":
{cms_module module='comments' modulename='News' pageid=$entry->id}
Re: comments with news
Yes, that was my original try. That doesn't work either.
Re: comments with news
Do you have a link?
Ronny
Ronny
Re: comments with news
The site is a private blog I'm designing for someone-- so I'm not authorized to give out the address. Can't see anything when you go there anyway though, since the comments aren't showing up. BTW, they are showing up in the "Comments text" under the Content tab. The module just isn't being called up into the page for some reason.
Re: comments with news
Do you have "Moderate Comments" active, or are they set to show after sending directly?
Is the add-comment button also not showing?
Ronny
Is the add-comment button also not showing?
Ronny
Re: comments with news
I'm assuming this should be UNCHECKED, which it is:
"Moderate - Inactivate new comments. They must then be set as active by an admin before being displayed on the site."
And the "add comments" button is not showing up on the page. I CAN get it to show up when I add {cms_module module='comments'} to the content of a specific page, but I want to know why I can't set it up the way I'm supposed to?!
"Moderate - Inactivate new comments. They must then be set as active by an admin before being displayed on the site."
And the "add comments" button is not showing up on the page. I CAN get it to show up when I add {cms_module module='comments'} to the content of a specific page, but I want to know why I can't set it up the way I'm supposed to?!
Re: comments with news
What version of CMSMS and Comments are you using?
As latest version of News doesnt work with ''formatpostdate' anymore. This has to be replaced with 'postdate'...
Ronny
As latest version of News doesnt work with ''formatpostdate' anymore. This has to be replaced with 'postdate'...
Ronny
Re: comments with news
CMS Version 1.4.1 and Comments 1.8.2
could that be the problem?
could that be the problem?
Re: comments with news
oh, and News 2.8.3
Re: comments with news
No, that should work... formatpostdate is available in the 1.4-series...
I cant see why it isnt working then...
Normally with the sample code in Comments-help, the frontend gives the add-comment....
Ronny
I cant see why it isnt working then...
Normally with the sample code in Comments-help, the frontend gives the add-comment....
Ronny
Re: comments with news
thanks for trying to help anyway!