
Luke
Staff
/ Moderator

Jun 7, 2002, 2:09 PM
Post #2 of 2
(3349 views)
Shortcut
|
It's possible to have a featured stories section on the front page. This can be done by using an SSI to include the category headlines file for a category named "featured stories". You will, however, have to settle for having these articles also output in the webfeed generator and search results. Here's what to do (please note that a basic understanding of HTML is recommended for making these changes): 1. Create a new category called "Featured Stories" in the "category editor". 2. Instead of using the current category list SSI to output your category links, you'll want to hardcode/create your own category list that displays links to all of the categories other than the "Featured Stories" category. 3. Now you'll have to find the name of the file you want to include. The category headlines files are titled cat_headlines_x.shtml, where x is the category's record number. To find out the category's record number, in the category editor select modify for the "Featured Stories" category. On the modify screen remember the number on the end of the URL: e.g. admin.cgi?category_edit=4 In this example the number is 4. This is the category number. (For you it'll probably be a different number.) Therefore your category headlines file will be in the /artman/publish/ directory and (as per this example) would be named: cat_headlines_4.shtml 4. You'll now want to use an SSI (Server Side Include) to include this file on your front page. Open up the /index/default.html template file in an HTML/text editor of your choice and include the SSI call in the source code where you feel it would be most appropriate to include this categories headlines. The server side include looks like this: <!--#include virtual="/artman/publish/cat_headlines_4.shtml" --> 5. The last thing you'll want to do is modify the /headlines/default.html file to suit the look and feel of your front page. (this is the template that is used to output the cat_headlines_x.shtml files). If you're using this template for your category headlines already, simply just make a copy of it, save it in the /headlines/ directory, modify the copied template to suit the look and feel of your front page, go back to your category editor, click modify for the "Featured Stories" category, and select the new copied template as your "Latest Headlines" template file. 6. When done, go to your "Setup Options" and click the "Publish All" button. And that's it, you'll now be using an SSI to include the Featured Stories headlines on your Front Page. Luke Holzken Product Development
|