Page 1 of 1
Blogs Made Simple: Trouble listing just titles
Posted: Fri Aug 08, 2008 3:30 pm
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
Re: Blogs Made Simple: Trouble listing just titles
Posted: Fri Aug 08, 2008 5:48 pm
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.
Re: Blogs Made Simple: Trouble listing just titles
Posted: Sat Aug 09, 2008 3:54 am
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. =\
Re: Blogs Made Simple: Trouble listing just titles
Posted: Sat Aug 09, 2008 4:29 am
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...

Re: Blogs Made Simple: Trouble listing just titles
Posted: Sat Aug 09, 2008 7:04 am
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
Re: Blogs Made Simple: Trouble listing just titles
Posted: Sat Aug 09, 2008 7:18 am
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...
Re: Blogs Made Simple: Trouble listing just titles
Posted: Sat Aug 09, 2008 7:28 am
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
Re: Blogs Made Simple: Trouble listing just titles
Posted: Sat Aug 09, 2008 10:45 am
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
Re: Blogs Made Simple: Trouble listing just titles
Posted: Sat Aug 09, 2008 1:05 pm
by Jude
Silly, silly me.
After clean re-installation of 1.4 everything works fine.
Re: Blogs Made Simple: Trouble listing just titles
Posted: Sat Aug 09, 2008 9:39 pm
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...
Re: Blogs Made Simple: Trouble listing just titles
Posted: Mon Aug 11, 2008 3:17 pm
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
