Page 1 of 1

[Solved] How to display News Titles Only?

Posted: Sat Feb 02, 2008 10:28 am
by goodsamaritan
Hi Guys!

I think CMS Made Simple is my future web development platform. 
Just ironing out some issues with myself and my staff.
One sticky issue we can't solve is:

"How to display NEWS TITLES only?" (in the left column)

(i don't need the author, I don't need the date, and I don't need the summary, but I do need those details in my NEWS FRONT PAGE in the middle.)

{news titlesonly="1"} ??? ha ha ha.

For example in your blog: (yes, it is wordpress)

Recent posts

* Forum Down [Updated]
* Announcing CMS Made Simple 1.2.3
* Announcing CMS Made Simple 1.2.2
* Announcing CMS Made Simple 1.2.1
* CMSMS Places in Packt's Overall 2007 Open Source CMS Award
* And the winner is...
* About announcement of the winner of the design competition
* Announcing CMS Made Simple 1.2

--------

For example:  This page http://www.eczemacure.info/news-&-updates/
Has news summaries in the main column.
In the left column it has news titles only.

Re: How to display News Titles Only?

Posted: Sat Feb 02, 2008 12:14 pm
by westis
Hi goodsamaritan,

What you want to change is what is called the summary view. You simply edit the default summary template for your News module. To get a list of news article titles only the summary template can for example look like this:

Code: Select all

<!-- Start News Display Template -->
<ul>

{foreach from=$items item=entry}

<li class="NewsSummaryLink">
	{$entry->titlelink}
</li>

{/foreach}

</ul>
<!-- End News Display Template -->

Re: How to display News Titles Only?

Posted: Sat Feb 02, 2008 12:20 pm
by westis
By the way, if you want to have another summary list of your news articles in the main content area for example, you can setup another News summary template. Then in your content area for that page you put something like {news summarytemplate='longersummary'} or whatever you call the second summary template.

Re: How to display News Titles Only?

Posted: Sat Feb 02, 2008 2:19 pm
by goodsamaritan
Wow!  Awesome!  Thank you!
I didn't know we could have 2 different summaries.
I'll try that on a test site and report back here with a link to see if I've done it correctly.

Re: How to display News Titles Only?

Posted: Sun Feb 03, 2008 3:36 am
by goodsamaritan
Alright!
I got to understand and got News summarytemplates working!!!!
Absolutely great!
You guys are the best!

One thing I'd like to note for NEWBIES is the darned:

[ ] Turn WYSIWYG on/off

You must remember to turn WYSIWYG OFF when you are inserting your {news + parameters} because it screws up the program!

Re: [Solved] How to display News Titles Only?

Posted: Sun Feb 03, 2008 6:32 am
by RonnyK
Actually the insertion of the module-call isnt screwed up by the WYSIWYG, only if you copy/paste from the help or elsewhere, the fonts etc.... are being inserted as well.

So indeed is it good to dont use the WYSIWYG, another option is to switch to HTML-source afterwards and clean unwanted tags....

Ronny