
Luke
Staff
/ Moderator

Sep 16, 2002, 5:42 PM
Post #2 of 2
(1868 views)
Shortcut
|
|
Re: [babakk2] latest headline problem
[In reply to]
|
Can't Post
|
|
Hi, Article Manager doesn't allow you to hide categories from the headlines file, but there is another way to get around this. Here's my suggestion. If you have 8 categories and you only want 3 of those categories have their headlines appear under the "Latest Headlines" section on the Front Page - instead of including the existing Latest Headlines (headlines_bycat) with a Server Side Include, you could modify the index/default.html template and use SSIs to include each of the "Category Headlines" (cat_headlines_x.shtml) files for those 3 categories instead. Here's how this can be done. 1. The first thing to do is to decide what 3 categories you want to include and then find the category record numbers for those 3 categories. You can find out the category number by going into the category editor and mousing over or clicking the edit link. In the status bar (or Address bar if you clicked) the URL will be something like this: admin.cgi?cat_edit=4 So just mouse over (or click) on each of the 3 categories you plan to include and make a note of their category numbers. 2. Now open up the /index/default.html template file in an HTML/text editor of your choice. (you might also want to make these same changes to the /search/advanced_search.html and /search/search_results.html template files) You'll want to replace this: <!-- INCLUDE TOP HEADLINES (from each category) --> <!--#include file="$file_headlines_bycat$" --> <!-- template include : $file_headlines_bycat$ --> With SSI calls that include the 3 individual "Category Headlines" files (cat_headlines_x.shtml where x is the category number) you plan to include. Here's an example if you were including categories 2, 3, and 5. <!--#include file="cat_headlines_2.shtml" --> <!-- template include : cat_headlines_2.shtml" --> <!--#include file="cat_headlines_3.shtml" --> <!-- template include : cat_headlines_3.shtml" --> <!--#include file="cat_headlines_5.shtml" --> <!-- template include : cat_headlines_5.shtml" --> And that's about it. Let me know if you have any questions. :) Luke Holzken Product Development
|