[solved] sCGBlog : number of articles and of links

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Trangsene
Forum Members
Forum Members
Posts: 19
Joined: Thu Aug 28, 2008 9:43 am

[solved] sCGBlog : number of articles and of links

Post 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
Last edited by Trangsene on Tue Nov 15, 2011 9:27 pm, edited 1 time in total.
uniqu3

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

Post 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'} :-)
User avatar
Trangsene
Forum Members
Forum Members
Posts: 19
Joined: Thu Aug 28, 2008 9:43 am

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

Post 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.
Post Reply

Return to “Modules/Add-Ons”