[Solved] How to display News Titles Only?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
goodsamaritan
Forum Members
Forum Members
Posts: 21
Joined: Sat Feb 02, 2008 10:21 am

[Solved] How to display News Titles Only?

Post 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.
Last edited by goodsamaritan on Sun Feb 03, 2008 3:36 am, edited 1 time in total.
westis

Re: How to display News Titles Only?

Post 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 -->
westis

Re: How to display News Titles Only?

Post 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.
goodsamaritan
Forum Members
Forum Members
Posts: 21
Joined: Sat Feb 02, 2008 10:21 am

Re: How to display News Titles Only?

Post 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.
goodsamaritan
Forum Members
Forum Members
Posts: 21
Joined: Sat Feb 02, 2008 10:21 am

Re: How to display News Titles Only?

Post 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!
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
Post Reply

Return to “CMSMS Core”