Issues with the News module; details listing and linking

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
z00man
New Member
New Member
Posts: 3
Joined: Fri Jul 11, 2008 8:47 pm

Issues with the News module; details listing and linking

Post by z00man »

Hello all,

I just started using CMS Made Simple a few weeks ago and it has been great! But now I have run into some difficulties with the News module that I hope you guys can help me with.

I'm currently building a site, for a client, that will use the News module in two places. First off the News Summary will be present on a sidebar of all pages through the template.

Code for News Summary sidebar in the template:

Code: Select all

<div id="sidebar">
    <h2>Latest news</h2>
        {news number='3' detailpage='home' dateformat='%d-%m-%Y' moretext="read more"}
</div>
Secondly my client also wants the News Details to be present in the default content page called "Home". For this I just pasted the following in the "Content" field for a Content page called "Home" and made it the default one.

Entry in the "Content" field of the Home content page:

Code: Select all

Welcome to our home page. (Description about the business, etc etc).

News
{news number='2' action='detail' detailpage='home' dateformat='%d-%m-%Y' moretext="read more"}
So when a user reaches the front page he is greeted by the "Welcome" description text and the News Details in the middle of the page (where the {content} tag is in the template). And also the News Summary in the sidebar. So far so good...

Now I have two problems with this!

1) Doing "{news number='2' action='detail' detailpage='home' dateformat='%d-%m-%Y' moretext="read more"}" just shows the details for the first news item added (note: NOT the latest one!) and not the two latest ones? Why?

2) When a user goes to a subpage and decides to click a on a news item in the sidebar he gets directed back to the "Home" content page. The news details shows up for that news item BUT the "Welcome to our home page" text is gone! How do I solve this?

Thank you in advance for any help,
z00man
Last edited by z00man on Fri Jul 11, 2008 9:08 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Issues with the News module; details listing and linking

Post by Dr.CSS »

When you have a detailpage= then the detail of the news will take over the {content} of that page...

? 1) what did you want it to do?...
z00man
New Member
New Member
Posts: 3
Joined: Fri Jul 11, 2008 8:47 pm

Re: Issues with the News module; details listing and linking

Post by z00man »

mark wrote: When you have a detailpage= then the detail of the news will take over the {content} of that page...

? 1) what did you want it to do?...
Is there a way to solve this? So I can show both the news details for the two latest items and the {content} on the same page? I could probably add the "Welcome..." text to the new details template but that would make it more difficult for my client to change that specific content...


1) I want it to show the details of the two latest news items. As it is now it just shows the details for the first news item ever added. For example, I have three news items added: one from 2008-05, one from 2008-06 and one from 2008-07. I want it show the news details of 2008-07 and 2008-06 obviously. But as it is now it JUST shows the news details for the item from 2008-05.

Does that make sense?

EDIT: OK. So for 2) it seems that I can use {content block} but how do I make the news item just load into the second {content block} ?
Last edited by z00man on Sat Jul 12, 2008 11:29 am, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”