Issues with the News module; details listing and linking
Posted: Fri Jul 11, 2008 9:00 pm
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:
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:
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
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>
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"}
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