Blogs Made Simple: Trouble listing just titles

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
amorre

Blogs Made Simple: Trouble listing just titles

Post by amorre »

I have blogs made simple completely figured out except for one thing.

In my page I have {Blogs numentries="3"} and that works fine

Also in my template I have a div that I want to just show titles of say, the last 5 articles

I can get it to show the categories I have but I can not get it to show just the titles of past or recent articles written.

I just want to show a list of the past like 5 or 6 blog posts written.  And link to them.


Am i missing something really easy here? ::)

Please help.  Thank You

-Aaron
Last edited by amorre on Fri Aug 08, 2008 3:32 pm, edited 1 time in total.
amorre

Re: Blogs Made Simple: Trouble listing just titles

Post by amorre »

Code: Select all

<div class="blogs-showcategorylistbox">
  <div class="blogs-showcategorylistheader">
  {$categoriestext}
  </div>
  <div class="blogs-showcategorylistcategories">    
    {if $itemcount>0} 
      {foreach from=$items item=category}
      <div class="blogs-showcategorylistcategory">
      {$category->title} ({$category->noentries} 
      {if $category->noentries==0}
        {$noentries})
      {elseif $category->noentries==1}
        {$entrytext})
      {else}
        {$entriestext})
      {/if}
      </div>
      {/foreach}
  {else} 
    {$noentriestext}
  {/if}
  </div>
</div>
   

I have been trying to edit this here to display an array of titles. 
this code is from the category list tab

changine $entrystext to {$entry->title} returns one result but no more.
sweaverit
Forum Members
Forum Members
Posts: 36
Joined: Sun Nov 25, 2007 4:03 am

Re: Blogs Made Simple: Trouble listing just titles

Post by sweaverit »

I don't think they're providing support for this module anymore since the Comments work around came out for the News module. =\
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Blogs Made Simple: Trouble listing just titles

Post by Dr.CSS »

This module is fully supported, but I don't think {foreach from=$items item=category} array has titles in it just catagories so you may have to add another item= type thing but hey I'm no programmer... ;)
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Blogs Made Simple: Trouble listing just titles

Post by Russ »

Mark is the Blog module still based on News or is it different? If on News is it at the latest version. Sorry, to ask here. I only ask as a friend wants to use it.

Meanwhile back at the post....

If you use {get_template_vars} (hint it's a tag) in your template, the variables from the module will be listed and should help you with your Smarty ;-)

Russ
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Blogs Made Simple: Trouble listing just titles

Post by Dr.CSS »

Blogs Made Simple is written from the ground up, mine was a reworked News module, I still use/have it but wish I could get multi categories to work in it then it would be done...
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Blogs Made Simple: Trouble listing just titles

Post by Russ »

When you say
I still use/have it but wish I could get multi categories to work in it then it
Do you mean your version based on news, because doesn't news have categories?

By
Blogs Made Simple is
I presume you mean Blogs-0.3.0b2?

Perhaps I'd better stop hjacking this thread  ::)

Russ
Jude
Forum Members
Forum Members
Posts: 31
Joined: Fri Aug 08, 2008 2:01 pm

Re: Blogs Made Simple: Trouble listing just titles

Post by Jude »

I tried Blogs-0.3.0b2, but after the installation I couldn't list my content pages – got a announcement of a fatal error -> see my message: http://forum.cmsmadesimple.org/index.ph ... #msg119389
Jude
Forum Members
Forum Members
Posts: 31
Joined: Fri Aug 08, 2008 2:01 pm

Re: Blogs Made Simple: Trouble listing just titles

Post by Jude »

Silly, silly me.

After clean re-installation of 1.4 everything works fine.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Blogs Made Simple: Trouble listing just titles

Post by Dr.CSS »

@Russ

I would like it to be able to put an article under more than one category, and have the categories link to a list of articles in that category...
amorre

Re: Blogs Made Simple: Trouble listing just titles

Post by amorre »

Russ wrote: Mark is the Blog module still based on News or is it different? If on News is it at the latest version. Sorry, to ask here. I only ask as a friend wants to use it.

Meanwhile back at the post....

If you use {get_template_vars} (hint it's a tag) in your template, the variables from the module will be listed and should help you with your Smarty ;-)

Russ
menuparams = Array
count = 4
nodelist = Array
node = Object
pagechooser =
items = Array
itemcount = 1
entry = Object
categoriestext = categories
entriestext = entries
entrytext = entry
noentriestext = No entries
category = Object

these are the variables that came up.

i tried making a new item but everything went fubar and i had to reinstall.  im stuck on this  :(
Locked

Return to “Modules/Add-Ons”