Page 1 of 1

[solved] sCGBlog : number of articles and of links

Posted: Tue Nov 15, 2011 5:40 pm
by Trangsene
Hello,
I'm using the CGBlog module and I would like to have the 2 last articles on my blog page and a list of the links for the 10 last articles in my sidebar.

If I call the module with

Code: Select all

{CGBlog number='2'}
I have only 2 links in my sidebar :-\

How can I modify the list to get my 10 articles ???

Code: Select all

<ul>
  {foreach from=$items item=entry}
    <li>
    <a href="{$entry->detail_url}" title="{$entry->title|escape:htmlall}">{$entry->postdate|date_format:"%B %Y"}</a>
    </li>
  {/foreach}
  </ul>
Thanks in advance for your help

Re: CGBlog : number of articles different from number of lin

Posted: Tue Nov 15, 2011 8:58 pm
by uniqu3
Look in your template, how do you call CGBlog in sidebar?
Basically this would be two calls one for sidebar and one for content so in sidebar you call it {CGBlog number='10'} and in content {CGBlog number='2'} :-)

Re: [solved] sCGBlog : number of articles and of links

Posted: Tue Nov 15, 2011 9:31 pm
by Trangsene
Effectivly, that's the best way to do it.

How stupid of me, I tried to have my articles and my list in the same summary template.

Thanks a lot for your answer.