BlogsMadeSimple, category list

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
bullitshot
Forum Members
Forum Members
Posts: 57
Joined: Mon Mar 23, 2009 11:35 am

BlogsMadeSimple, category list

Post by bullitshot »

Helllo!

I have installed the Blogs module and it works fine. I would like to add in the sitebar a list with the blog-categories and with links to blog entrys. Something like this:

Category1
blog1
blog2

Category2
blog1
blog2

I have played with the different "category" templates but i can't seem to get it right. Is there a template for it or so?

Thanks!
chandu
New Member
New Member
Posts: 7
Joined: Thu Mar 26, 2009 10:17 pm

Re: BlogsMadeSimple, category list

Post by chandu »

I tried to accomplish the same thing. Didn't get very far. My guess is that you have to modify the files in the: modules>Blogs directory directly.

I hope you find an answer, it doesn't seem like the Blogs Made Simple module is very well understood, as far as modifying it goes.

If for some reason I figure it out I'll post it.
JeremyBASS

Re: BlogsMadeSimple, category list

Post by JeremyBASS »

Oh what fun it is to sit  and have nothing to do but text on a phone...

try this... or something like this...


in the blog short cat list

Code: Select all


<span class="blogs-showcategorylistbox">
  <span class="blogs-showcategorylistheader">
  {$categoriestext}
  </span><br/>
  <span class="blogs-showcategorylistcategories">    
    {if $itemcount>0} 
      {foreach from=$items item=category}
      <span class="blogs-showcategorylistcategory">
{assign var=utmpBLOGS value=$category->title|regex_replace:'/returnid=*[a-zA-Z0-9]+/':'returnid=106'}
{$utmpBLOGS}<br/><span style="font-size:8px;font-weight:900;">({$category->noentries} 
      {if $category->noentries==0}
        {$noentries})
      {elseif $category->noentries==1}
        {$entrytext})
      {else}
        {$entriestext})
      {/if}</span>
      </span>



{capture assign='junk'}{Blogs catid="`$category->id`"}{/capture} {foreach from=$items item=entry} {assign var=utmpBLOGS value=$entry->entryurl|replace:'/'$content_id`/':'/106/'|replace:'/106/`$content_id`/':'/``/106/'} <a href="{$utmpBLOGS}">{$entry->title}</a><br />






<br/>
      {/foreach}
  {else} 
    {$noentriestext}
  {/if}
  </span>
</span>

(note 106 is the content_id of the page you wish it to land... place tag there too...)

Now that is rough and just spit-balling... but should show you how to start doing what you’re asking... This is what I know for sure... it can be done...

Cheers
jeremyBass
bullitshot
Forum Members
Forum Members
Posts: 57
Joined: Mon Mar 23, 2009 11:35 am

Re: BlogsMadeSimple, category list

Post by bullitshot »

chandu wrote: I tried to accomplish the same thing. Didn't get very far. My guess is that you have to modify the files in the: modules>Blogs directory directly.

I hope you find an answer, it doesn't seem like the Blogs Made Simple module is very well understood, as far as modifying it goes.

If for some reason I figure it out I'll post it.
I think you are right that the blogs module isn't very well understood. Just started a week and a half ago with cmsmadesimple but the big problem is that not only with the blogs module but with most modules you cant find much info about it period. In the helppage of the module is not a lot of interesting info as well.

It's a shame because I think this CMS system is in his setup very clear and I hope there will be more info about the modules.
bullitshot
Forum Members
Forum Members
Posts: 57
Joined: Mon Mar 23, 2009 11:35 am

Re: BlogsMadeSimple, category list

Post by bullitshot »

Thank you for your code!

I have a problem. When I put this code: {cms_module module='Blogs' show="shortcategory" lang="nl_NL"} in it. (indeed, i'm dutch) I get an empty screen. When I put "everything" in it, it will show everything. I have reset the shortcategory template so that can not be a problem.

Please help!
JeremyBASS

Re: BlogsMadeSimple, category list

Post by JeremyBASS »

So when you copy and pasted in what I wrote it worked by calling

{cms_module module='Blogs' show="shortcategory" }

but when you added the

lang="nl_NL"

it doesn't...? No error just blank?  (for what it worth there is no lang vars in that... so you shouldn't need the lang="nl_NL")

I'll test it later, I was just showing how it could/would be done... I was on my phone so there was no checking on it...

Cheers
jeremyBass
bullitshot
Forum Members
Forum Members
Posts: 57
Joined: Mon Mar 23, 2009 11:35 am

Re: BlogsMadeSimple, category list

Post by bullitshot »

When I put the code without the NL statement in it there is nothing on my screen, not even an error code.

When I put the code what is in "short category" in the sidebar and it should have shown the category name, time and title and now it shows something but it is only the title from the blogs.

I havent got a clue how that is possible. Anyone?
JeremyBASS

Re: BlogsMadeSimple, category list

Post by JeremyBASS »

It'd be helpful if you'd document some things for us... link, what you have in the templates, and on the page...

Cheers
jeremyBass
bullitshot
Forum Members
Forum Members
Posts: 57
Joined: Mon Mar 23, 2009 11:35 am

Re: BlogsMadeSimple, category list

Post by bullitshot »

ok! I'll do that!

okay, this is my page www.80is80.nl it is in dutch

this is the template:





80is80.nl Meningen over het verkeer!
{metadata}
{stylesheet}
















{content lang="nl_NL"}


 











{cms_module module='polls' lang="nl_NL"}








 







{cms_module module='VisitorStats' lang="nl_NL"}








This is my blog template:

{if $breadcrumb!=""}
{$breadcrumb}
{/if}

{if $pagechooser!=""}
{$pagechooser}
{/if}


{if $itemcount>0} {foreach from=$items item=entry}
 
       
      entryurl}">
      {$entry->title}
     
   
    {$entry->text}
{if $entry->files!=''}
    {$entry->files}
{/if}     
   
({$entry->morelink}) ({$entry->comments}){$entry->time} Gepost door: {$writtenby} {$entry->author}
 
{/foreach} {else} {$noentriestext} {/if}


The other pages of the blogs module are standard now.

If you need more just say so :)

Thanks!
JeremyBASS

Re: BlogsMadeSimple, category list

Post by JeremyBASS »

And so I'm clear you want what is on the page now, but you need listed under it's category...

Cat title

-Blog and all it stuff for Cat title
-Blog and all it stuff for Cat title

Cat title2

-Blog and all it stuff for Cat title2
-Blog and all it stuff for Cat title2


yes?  I'll have to come back as I can't test anything out right now... let me know and I'll try to get back at this later... I have a few clients to take care of tonight but most likely after that....

cheers
jeremyBass
bullitshot
Forum Members
Forum Members
Posts: 57
Joined: Mon Mar 23, 2009 11:35 am

Re: BlogsMadeSimple, category list

Post by bullitshot »

Hello!

I was also a bit busy but im back!

Your suggestion is correct and I would like that. Also Chandu is interested in this I think. I dont know if he/she is reading this.

Why is it so hard to adjust it like this? Im not a programmer (I almost gruadated for a bachelor degree in Business Information Science) but I can read the code. It is cmsMADESIMPLE and I dont find it quite easy to do.

Thank you!
JeremyBASS

Re: BlogsMadeSimple, category list

Post by JeremyBASS »

Hello, So you got it to go or need it to?  I'm not sure what you're saying is correct.

The reason for blogs being so difficult is due to a few things... one mods are made for someone and it takes someone else saying I'd like this or that, and two it's all done but donation of time money and or skill... so things can be sped up by paying for things, trading for services and or making the changes and submit it for inclusion to the mods.

Things are in motion now... a new blog mod is being made by calguy, to speed it up you may want to donate to him and you can pay for things you want in there, thou I think by nature it'll do what you’re asking since it's the news mod forked into a blog system.  So really if you can wait you best to aim for that I'd think...

Cheers
jeremyBass
Post Reply

Return to “Modules/Add-Ons”