Page 1 of 1
How to feature a news article?
Posted: Fri Dec 16, 2011 3:34 pm
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.
Re: How to feature a news article?
Posted: Fri Dec 16, 2011 4:21 pm
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)
Re: How to feature a news article?
Posted: Mon Dec 19, 2011 2:16 pm
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.