I don't know when this first broke but I found it today.
I use the News and Comments modules on one of my web sites. The error I receive when clicking on the summary title is 'no content elements specified or found' via a dialog box. Clicking OK continues on to the main body of the news item. I get to the news from {cms_module module='news' category='blog' number="5" dateformat="%A %B %d, %Y" moretext='Comments'} on my main page.
News v2.3
Comments v1.8.0
CMSMS v1.1
Can someone point me in a direction to try and identify and correct this error?
error with News and Comments module
Re: error with News and Comments module
Have you changed or upgraded your site or news module?...
How do you call the comments module, and have you changed the news template from the default?...
How do you call the comments module, and have you changed the news template from the default?...
-
badhoy
Re: error with News and Comments module
Comments module is called via
Now Running:
News 2.3.0.2
Comments 1.8.2
CMS 1.1.2
this is on the home page.{cms_module module='news' category='blog' number="5" dateformat="%A %B %d, %Y" moretext='Comments'}
Now Running:
News 2.3.0.2
Comments 1.8.2
CMS 1.1.2
Re: error with News and Comments module
That is how you call the News, the comment should be called in the bottom of the detail news template, the error seems to be coming from not having a content area in your news template...
Have you changed the summary news template?...
Have you changed the summary news template?...
-
badhoy
Re: error with News and Comments module
Right, sorry. I'd spent several hours digging through stuff and was a bit bleary eyed when I posted. I've included my detail and summary template info below. I think I changed the summary but can't remember. A second set of eyes will probably find the issue quickly. Thanks.
This is how comments is called.
Here is my summary template
This is how comments is called.
Here is my _dflt{cms_module module="comments" modulename="News" pageid=$entry->id emailfield=1 websitefield=1 spamprotect=1}
Code: Select all
<h3 id="NewsPostDetailTitle">{$entry->title}</h3>
<hr id="NewsPostDetailHorizRule" />
<!-- Don't want the category, so will comment it all out
{if $entry->category}
<div id="NewsPostDetailCategory">
{$entry->category}
</div> -->
{/if}
{if $entry->formatpostdate}
<div id="NewsPostDetailDate">
{$entry->formatpostdate}
</div>
{/if}
{if $entry->summary}
<div id="NewsPostDetailSummary">
<strong>
{eval var=$entry->summary}
</strong>
</div>
{/if}
<!-- Don't want author comment it out
{if $entry->author}
<div id="NewsPostDetailAuthor">
{$entry->author}
</div>
{/if} -->
<div id="NewsPostDetailContent">
{eval var=$entry->content}
</div>
<div id="NewsPostDetailPrintLink">
{$entry->printlink}
</div>
<br />
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">
{$return_url}</div>
<br />
{socialBookmarks}
{/if}
<br />
{cms_module module="comments" modulename="News" pageid=$entry->id emailfield=1 websitefield=1 spamprotect=1} Code: Select all
<!-- Start News Display Template -->
{if $pagecount > 1}
<p>
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">
{if $entry->formatpostdate}
<div class="NewsSummaryPostdate">
{$entry->formatpostdate}
</div>
{/if}
<div class="NewsSummaryLink">
{$entry->titlelink}
</div>
<div class="NewsSummaryCategory">
{$category_label} {$entry->category}
</div>
{if $entry->author}
<div class="NewsSummaryAuthor">
{$author_label} {$entry->author}
</div>
{/if}
{if $entry->summary}
<div class="NewsSummarySummary">
{eval var=$entry->summary}
</div>
<div class="NewsSummaryMorelink">
[{$entry->morelink}]
</div>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
</div>
{/foreach}
<!-- End News Display Template -->Re: error with News and Comments module
One thing I see is in the Detail template there is an {/if} after the category, put this inside your comment out line and see if it helps...
{/if}
{/if}
-
badhoy
Re: error with News and Comments module
I fixed that but it made no difference. This is really frustrating. I do appreciate your help.mark wrote: One thing I see is in the Detail template there is an {/if} after the category, put this inside your comment out line and see if it helps...
{/if}
Re: error with News and Comments module
Been w/o internet...
Did you check to make sure you have permission, in Users & Groups > Group Permissions > admin, to use/edit the comments module?...
Did you check to make sure you have permission, in Users & Groups > Group Permissions > admin, to use/edit the comments module?...
-
badhoy
Re: error with News and Comments module
That sucks being without internet access...
All permissions are in place.
As I dig into this I am not sure it is a comments issue, it might just be a News issue. The error dialog pops up when clicking on the news item Topic from the summary display - you can see it at http://www.kmnews.com
All permissions are in place.
As I dig into this I am not sure it is a comments issue, it might just be a News issue. The error dialog pops up when clicking on the news item Topic from the summary display - you can see it at http://www.kmnews.com
Re: error with News and Comments module
I think you are using a diff. summary template than the one in your post as that page has code not shown in posted summary template...
The red stuff is probably the reason for the error popup...
Succesful Virtual Teams
blog
-->
The red stuff is probably the reason for the error popup...
Succesful Virtual Teams
blog
-->

