comments with news

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
wolphy
Forum Members
Forum Members
Posts: 33
Joined: Fri Sep 19, 2008 2:26 pm

comments with news

Post by wolphy »

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??
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: comments with news

Post by RonnyK »

The help of Comments shows the following example...
Example of using with News module
Put this in your News "Detail Template":
{cms_module module='comments' modulename='News' pageid=$entry->id}
Ronny
wolphy
Forum Members
Forum Members
Posts: 33
Joined: Fri Sep 19, 2008 2:26 pm

Re: comments with news

Post by wolphy »

Yes, that was my original try.  That doesn't work either.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: comments with news

Post by RonnyK »

Do you have a link?

Ronny
wolphy
Forum Members
Forum Members
Posts: 33
Joined: Fri Sep 19, 2008 2:26 pm

Re: comments with news

Post by wolphy »

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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: comments with news

Post by RonnyK »

Do you have "Moderate Comments" active, or are they set to show after sending directly?

Is the add-comment button also not showing?

Ronny
wolphy
Forum Members
Forum Members
Posts: 33
Joined: Fri Sep 19, 2008 2:26 pm

Re: comments with news

Post by wolphy »

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?!
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: comments with news

Post by RonnyK »

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
wolphy
Forum Members
Forum Members
Posts: 33
Joined: Fri Sep 19, 2008 2:26 pm

Re: comments with news

Post by wolphy »

CMS Version 1.4.1 and Comments 1.8.2

could that be the problem?
wolphy
Forum Members
Forum Members
Posts: 33
Joined: Fri Sep 19, 2008 2:26 pm

Re: comments with news

Post by wolphy »

oh, and News 2.8.3
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: comments with news

Post by RonnyK »

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
wolphy
Forum Members
Forum Members
Posts: 33
Joined: Fri Sep 19, 2008 2:26 pm

Re: comments with news

Post by wolphy »

thanks for trying to help anyway!
Post Reply

Return to “Modules/Add-Ons”