Page 1 of 1

Showing all articles

Posted: Wed Jun 07, 2006 7:12 pm
by knotty
One day into CMS simple. I can get one article to appear on the front page by setting it as default. But, how can I show many articles like in a blog style so I can scroll through them?

Thanks...knotty

Re: Showing all articles

Posted: Wed Jun 07, 2006 8:50 pm
by FinnK
You can use the newsmodule for that. Probably you have to modify the summary and detail templates, or make your own templates to suit what you want to do.

Perhaps there is a blog module too now?

Re: Showing all articles

Posted: Wed Jun 07, 2006 10:40 pm
by knotty
I checked for a blog module and didn't find one. I'll play with the news module.

Thanks..knotty

Re: Showing all articles

Posted: Thu Jun 08, 2006 1:52 am
by Dr.CSS

Re: Showing all articles

Posted: Thu Jun 08, 2006 1:57 pm
by knotty
Hi Mark,
I downloaded the blog module but I would like  to get a bit more familiar with the whole CMS thing. I'm not even sure how to get articles to show up in the right place.

Thanks!

Re: Showing all articles

Posted: Thu Jun 08, 2006 2:15 pm
by Dr.CSS
in the Content » Pages » Edit Page: yourpage....
content 'box' add...

{cms_module module="blog" category="general"} or category="whatever" or no category will show all 'blogs'

if you goto Extensions » Modules on the right you will see  Help  clik that to get all the parameters it takes...
under Content in admin menu you should see Blog clik that and add 'Blog' article...

Re: Showing all articles

Posted: Thu Jun 08, 2006 6:34 pm
by knotty
Ok, all done and the blog module is working fine.

One thing, When I go to the front page, I see HOME in bold right above the blog title  and a link which will open the article. I don't have any other articles in the system.

Is there a way to just have all the blog posts opened automatically on the front page without having to click on the link?

Thanks!...knotty

Re: Showing all articles

Posted: Thu Jun 08, 2006 6:54 pm
by Dr.CSS
it defaults to the summary template...
in the Help you will see how to change default...
basically...
copy detail template into an editor, such as note pad, i use the free PSPad editor it has syntax hilite, give it a name, upload it to modules/blog/templates folder, call it in tag  {cms_module module="blog" summarytemplate="nameofyourtemplate.tpl"}
you can delete calls like...
{if $entry->summary}


{eval var=$entry->summary}


{/if}

just the call, leaving everything else, the other stuff will show in source view of your page but not on the page...

Re: Showing all articles

Posted: Thu Jun 08, 2006 9:51 pm
by knotty
Thank you very much Mark, now I have enough to play with for a while.

knotty