How to feature a news article?

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
asdf
Forum Members
Forum Members
Posts: 39
Joined: Thu Jul 08, 2010 1:11 pm

How to feature a news article?

Post by asdf »

Is it possible to feature a news article without using extra modules like CGBlog? This article would not necessarily be the latest one, should belong to another category and it should be easy to use for non-tech users, which pretty much excludes using articleid to find it. Maybe using extra field?

Have nothing against using extra modules but we're likely to have a separate blog section so it might be easier for users to have dedicated news and blog tools rather than one.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: How to feature a news article?

Post by Wishbone »

If you're not using categories, then you can create a 'Featured' category that would contain your featured articles. The issue is that you can't use multiple categories (if you're already using them), like with CGBlog.

You can use an extra field for this, but you have to have your summary template query all articles to search for the one(s) with the field. The other way is to call a UDT on your page template that will give you the article id(s), which you can pass to the articleid parameter in {news}

Why not use CGBlog? (unless you already have a bunch of News articles)
asdf
Forum Members
Forum Members
Posts: 39
Joined: Thu Jul 08, 2010 1:11 pm

Re: How to feature a news article?

Post by asdf »

Thanks, maybe I have to use CGBlog anyway for the news also. I'm just starting the site so number of articles would not be a problem. I was just thinking keeping it simple for those users who enter the content, News for news articles and Blog for blog articles.

And also the fact that CGBlog failed when action="detail" was used with the sample template, so I couldn't set it for a quick demo. I saw a bug report was submitted not long ago. But that's enough about it in this section.
Post Reply

Return to “CMSMS Core”