1 (edited by 2008-07-27 11:02:49)

Topic: [FAQ] Having Pinned/Important posts

If you want to have important posts that will allways stay at the top of all other news, here is a quick tip to do it.
* Make new category called important
* Create new template called important and edit it so news look different (eg. with bold title)
* Use similar code for including your important and normal news:

[b]Important News[/b]
<?PHP
//here will be shown your important news
$category = "IMPORTANT_CAT_ID";
$template = "important";
include("path/to/show_news.php");
?>
<br/>
[b]Normal News[/b]
<?PHP
//here will be shown all other news
$category = "NORMAL_CAT_ID";
include("path/to/show_news.php");
?>

Now when you want to have a pinned news, just move it to important category and it will be shown at the top.