Forums / Setup & design / Help ... Highlight the article
Muhammad Khalid Majeed
Thursday 06 May 2004 3:56:30 am
I have # of different articles. I want to hightligh one article that will apear on top always or till the time i want. and remaining article will display after that article. Is there any way to do this.
Muhammad Khalid Software Engineer www.webgurru.net
Bjørn Kaarstein
Thursday 06 May 2004 3:58:19 am
If you sort by priority, you can choose which article to display first.
Regards Bjørn
Thursday 06 May 2004 4:02:23 am
Is there any other way regardless priority?
Tuesday 11 May 2004 6:44:40 am
Well, you could do it the nasty way, and fetch the article you wan't directly by its node...
Vivek Chopra
Tuesday 11 May 2004 9:42:12 am
I haven't tried this but just an idea.
How about modifying the article clas and adding a checkbox for displaying this article on top. So if the checkbox is checked that article will be displayed on the top.
Just like how the sticky messages in the forum work. You can check the code in the forum template files.let me know if this works.
Vivek
Mark Gilbert
Tuesday 11 May 2004 11:47:43 am
You would still have to edit the template to fetch those articles that have the box checked. Either way you are writing fetch code into the template used to display the list of articles. The check box method would be easier from a maintance perspective. Plus you could filter out the checked items when you display the rest of the articles.