[SOLVED] CGBlog Pagination Problem in category

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
josee225
Forum Members
Forum Members
Posts: 64
Joined: Sat Jun 06, 2009 12:42 am

[SOLVED] CGBlog Pagination Problem in category

Post by josee225 »

Hi,

My website navigation is organized in such a way that every CGblog Category has it's own page in the menu.

Each page has a similar CGBlog tag in it:

Code: Select all

{CGBlog summarytemplate="sommaire-page-blogue" pagelimit="5" detailpage="blogue-yugioh" lang=$lang_locale category="YuGiOh!-Français"}
I have 3 categories so far with more than 5 articles: Magic the Gathering, Pokemon and YuGiOh.

The first 2 work perfect, the yugioh category shows blank pages for every page after the first.

I tried changing the page limit, changing the category name to avoid the different possible "-" in the name, etc, etc, etc. What bothers me is that the other 2 categories wrk fine.... Anybody help ?

Thank you in advance!

System info:
CMS 1.9.4.2, CGBlog 1.7.5, CGExtensions 1.25.4

Summary Template:

Code: Select all

<!-- Start CGBlog Display Template -->
{if isset($error)}{cgerror}{$error}{/cgerror}{/if}

{capture assign='urlparam'}&cgblog_extra={$entry->extra}{/capture}

{foreach from=$items item=entry}
<div class="post">
<h3 class="post_heading">
<a href="{$entry->detail_url}" title="{$entry->title|escape:htmlall}">{$entry->title|escape}</a>
</h3>

<span class="postline">{if $lang_locale == "fr_FR"}{date}{$entry->postdate|date_format:"%e %B %Y"}{else}{$entry->postdate|date_format:"%B %e %Y"}{/if} {translate text="dans"} 

{if $entry->extra=='Magic the Gathering'}
		{cms_selflink page='blogue-magic-the-gathering' urlparam=$urlparam text=$entry->extra} 
		{elseif $entry->extra=='Yu-Gi-Oh!'}
		{cms_selflink page='blogue-yugioh' urlparam=$urlparam text=$entry->extra} 
		{elseif $entry->extra=='Pokemon'}
		{cms_selflink page='blogue-pokemon' urlparam=$urlparam text=$entry->extra} 
		{elseif $entry->extra=='Jeux de société'}
		{cms_selflink page='blogue-jeux-de-societe' urlparam=$urlparam text=$entry->extra} 
		{else}
		{cms_selflink page='blogue-sans-categorie' urlparam=$urlparam text=$entry->extra} 
		{/if}

{translate text="par"} {$entry->author}</span>

{if isset($entry->fields)}
  {foreach from=$entry->fields item='field'}
        {if $field->type == 'image'}
          <img src="{$entry->file_location}/{$field->value}" alt="{$entry->title|escape:htmlall}" title="{$entry->title|escape:htmlall}" style="float: left; margin-right: 10px; max-height: 190px;"/>
        {else}
          {$field->name}: {eval var=$field->value}
        {/if}
  {/foreach}
{/if}

<!--{if isset($entry->extra)}
    <h3>
        {eval var=$entry->extra}
	{* {cms_module module='Uploads' mode='simpleurl' titleupload_id=$entry->extravalue} *}
    </h3>
{/if}-->

	{eval var=$entry->summary}

<br />
	<a href="{$entry->detail_url}" title="{$entry->title|escape:htmlall}" class="all_post">{translate text="Lire le billet"}</a>
	<br />

</div>
<div style="clear: both;"></div>
<hr /><br />
{/foreach}

{if $pagecount > 1}
  <div class="navigation">
  	<div class="wp-pagenavi">
  	
{if $pagenumber > 1}
	{$firstpage} {$prevpage}
{/if}

<span class="pages">  {$pagetext} {$pagenumber} {$oftext} {$pagecount}</span>

{if $pagenumber < $pagecount}
	{$nextpage} {$lastpage}
{/if}
	  </div>
	</div>
{/if}
	
<!-- End CGBlog Display Template -->
Last edited by josee225 on Fri Aug 26, 2011 10:33 pm, edited 1 time in total.
josee225
Forum Members
Forum Members
Posts: 64
Joined: Sat Jun 06, 2009 12:42 am

Re: CGBlog Pagination Problem in category

Post by josee225 »

Problem solved: removed the ! from the category name!!!
Post Reply

Return to “Modules/Add-Ons”