News and CGFeedback after CMSMS 1.9 - strange behavior

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

News and CGFeedback after CMSMS 1.9 - strange behavior

Post by blast2007 »

With CMSMS 1.8.2 I used this template for my news summary and it worked fine.

Code: Select all

{foreach from=$items item=entry}
<div class="NewsSummary">
	<div class="NewsSummaryPostdate">
		{$entry->postdate|date_format:"%d/%m/%Y"} {$entry->title}
	</div>
...

{capture assign="count"}
{CGFeedback key1="News" key2=$entry->id action='ratings' ratingstemplate='Count'}
{/capture}
{startExpandCollapse id=$entry->id title="Comments: $count"}
{CGFeedback key1="News" key2=$entry->id action='summary'}
{CGFeedback key1="News" key2=$entry->id}
{stopExpandCollapse}

</div>
{/foreach}

{if $pagecount > 1}
  <p>
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
 {$nextpage} {$lastpage}
{/if}
</p>
{/if}

After upgrade to 1.9 I can't see any pagination links on page bottom.

Removing this code from template

Code: Select all

{capture assign="count"}
{CGFeedback key1="News" key2=$entry->id action='ratings' ratingstemplate='Count'}
{/capture}
{startExpandCollapse id=$entry->id title="Comments: $count"}
{CGFeedback key1="News" key2=$entry->id action='summary'}
{CGFeedback key1="News" key2=$entry->id}
{stopExpandCollapse}
make it works again (pagination is showed again) but I can't see any feedback.

As workaround I used this code:

Code: Select all

{capture assign="pagination"}
{if $pagecount > 1}
  <p>
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
 {$nextpage} {$lastpage}
{/if}
</p>
{/if}
{/capture}
before foreach cycle and I've put {$pagination} just after cycle end.

Any hints?
regards
blast

News 2.11
CGFeedback 1.2.1
CGExtensions 1.21
Post Reply

Return to “Modules/Add-Ons”