Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Featured Stories

 

 


Zyllyx
User

Jun 6, 2002, 2:45 PM

Post #1 of 2 (3439 views)
Shortcut
Featured Stories Can't Post

I'm really interested in having a "Featured Stories" section that shows up only on the front page. I have feature-length articles that I want to spotlight even when I am updating other columns.

Perhaps there could be a checkbox in the Article Creator marked "Spotlight Article," which will add the story to a static "Spotlight" category that does not show up in the navigation area or Webfeed Generator. Then one could add the Spotlight area to the Index template via SSI or something.

Does this sound interesting? I tried fudging around it using the current templating engine, but unfortunately since the search engine uses the same template as the front page it all came out looking quite bad.

Sorry, I don't think I'm explaining myself well... but do you get the idea I'm trying to get across?


Luke
Staff / Moderator


Jun 7, 2002, 2:09 PM

Post #2 of 2 (3349 views)
Shortcut
Re: [Zyllyx] Featured Stories [In reply to] Can't Post

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