WSN Knowledge Base
Adding an Editor's Picks Section
Adding an Editor's Picks Section
By Paul

Suppose you want a special page article only items you select

1) First we need a template to work in. See creating a custom template. For this example we'll call the template edpick (edpick.tpl).
2) Next, add a new article field named, let's say, edpick. Make it a checkbox. Uncheck the options for making it user submittable/editable since you want only editors to be able to choose these.
3) For articles you want to make editor's picks, edit them to check the box.
4) To display the list we'll use a toplist. Go to Admin -> Templates -> Toplist Generator. For the filtering condition, type
edpick = 'edpick'
. In the box for display content, let's use
<p><a href="{TRACKLINKURL}">{ARTICLETITLE}</a></a> - {ARTICLEDESCRIPTION}</p>
. If you want something more fancy you can use the regular article bit by typing
[INERTFILE=linkbit]
. If you do that you'll want to select a number of columns per row as well, since the article bit is made for a table.
5) Copy and paste the result which the toplist generator gives you into your edpick custom template.
6) Finally, link the edpick template into the rest of the site where you want it -- perhaps in the wrapper template -- with <a href="index.php?custom=yes&TID=edpick">Editor's Picks</a>

Rating:


0/5 based on 0 votes. The median rating is 0.

Submitted: 10/30/07 (Edited 06/23/09)

Description: Step by step tutorial in creating a special page which lists articles picked by administration.

Views: 359 views. Averaging 0 views per day.
In the most recent 30 day period, there've been 1 views.

Previous Article | Next Article

Features Showcase Purchase Services Resources Support