This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Setup & design » Help ... Highlight the article
expandshrink

Help ... Highlight the article

Help ... Highlight the article

Thursday 06 May 2004 12:56:30 pm - 5 replies

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.

Thursday 06 May 2004 12:58:19 pm

If you sort by priority, you can choose which article to display first.

Regards Bjørn

Thursday 06 May 2004 1:02:23 pm

Is there any other way regardless priority?

Tuesday 11 May 2004 3:44:40 pm

Well, you could do it the nasty way, and fetch the article you wan't directly by its node...

Regards Bjørn

Tuesday 11 May 2004 6:42:12 pm

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

Modified on Tuesday 11 May 2004 6:42:58 pm by Vivek Chopra

Tuesday 11 May 2004 8:47:43 pm

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.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from