Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Featured Article.. questions

 

 


jmueller0823
User

Oct 11, 2002, 4:17 PM

Post #1 of 5 (2015 views)
Shortcut
Featured Article.. questions Can't Post

My understranding is when an article is flagged as "featured", it will bring that article to the top of the sorted list.

Sometimes we re-purpose articles, bringing old articles back into the spotlight. I don't want to bring those to the top of the list, but I WOULD like to do a selective SSI just on those featured articles.

So...
On our home page, we might have a] a list of articles sorted in date order AND b] a couple of Featured articles [that don't appear on the other list].

Make sense? Is that possible? Thanks.


Jim

g r o w t h t r a c dot c o m
Life Changing Resources for Your Marriage


Zyllyx
User

Oct 12, 2002, 9:24 PM

Post #2 of 5 (1990 views)
Shortcut
Re: [jmueller0823] Featured Article.. questions [In reply to] Can't Post

It is definitely possible. The way to do it is create a hidden category (e.g. "Spotlight") with a plain-Jane template for the index, and then include the category index into your home page with an SSI call.

I have this working on my AM site at http://www.racingpress.com if you want to see it.

If the IT guys don't get to it before I can, I'll post a step-by-step howto. Can't do it at the moment, but give me a day or so... Crazy


(This post was edited by Zyllyx on Oct 12, 2002, 9:25 PM)


jmueller0823
User

Oct 13, 2002, 6:34 AM

Post #3 of 5 (1977 views)
Shortcut
Re: [Zyllyx] Featured Article.. questions [In reply to] Can't Post

Thanks.

We have a variety of templates and SSI calls on our site [http://www.growthtrac.com]. so sounds like this should be easy.

If you have time, I would appreciate a step-by-step.
Thanks.


Jim

g r o w t h t r a c dot c o m
Life Changing Resources for Your Marriage


jmueller0823
User

Oct 14, 2002, 11:32 AM

Post #4 of 5 (1948 views)
Shortcut
Re: [jmueller0823] Featured Article.. questions [In reply to] Can't Post

bump Tongue


Jim

g r o w t h t r a c dot c o m
Life Changing Resources for Your Marriage


Zyllyx
User

Oct 15, 2002, 11:09 AM

Post #5 of 5 (1931 views)
Shortcut
Re: [jmueller0823] Featured Article.. questions [In reply to] Can't Post

Awright, let me see if I can remember the exact sequence of steps. Please note this presupposes you are using SSI in all of your pages.

1) Create a category for your Featured Article repository. At my site the category is titled "Spotlight." Make sure you select the "Hide category and articles" option.

2) Figure out how many featured articles you want to display on your site's index page, then in the "Articles Per Page" field select "Custom" and enter that number in both the "Articles" and "Headlines" boxes -- we generally only spotlight one article at a time, so I have 1 for both.

3) In the "Category Filename" field, select "Custom" and choose a unique filename, preferably something similar to your category title (e.g. spotlight.shtml).

4) You may or may not choose to make unique templates for your featured articles. However, for this feature to work you need to create at least one template for the Category Index Page. I have attached the one I use on my site below. You'll want to put this in your /artman/templates/index directory and then select it in the proper pulldown in the Category Index Page field. The key for this template is that it be bare bones without any of the trappings of your other templates -- you'll see why in a minute.

5) Next, you'll want to edit your site's default index page template. Find the place on the page where you want to put your featured articles -- you will put the SSI call to your Featured Article index page there. Here is the code snippet from RacingPress.com that calls the Featured Article SSI in a table:


Code
   <TABLE WIDTH="100%" BORDER="0" ALIGN="CENTER" BGCOLOR="#000000">   
<TR>
<TD>
<DIV ALIGN="LEFT">
<B><FONT FACE="Verdana, Arial, Helvetica, sans-serif"
SIZE="1" COLOR="#FFFFFF">
&gt;&gt;FEATURED ARTICLE</FONT></B>
</DIV>
</TD>
</TR>
<TR>
<TD BGCOLOR="#DDDDDD">
<!--#include virtual="/publish/spotlight.shtml" -->
</TD>
</TR>
</TABLE>



You'll note that the SSI include calls the index page for the hidden category that is created using the bare-bones template you used -- which is why you don't want that template to be too fancy! Wink

6) Now, go into your Admin area and select the article(s) you want to highlight. In each article you want to highlight, change the category to your Featured Article category. Then republish all of your pages.

If I haven't bolloxed the instructions, what you should now see is a nice Featured Articles area on your index page that shows your desired articles.

KNOWN ISSUES:
When you click on a Featured Article, the hidden category WILL be displayed in your category_list navigation. If you click on the hidden category, it will display the bare-bones category index that normally is shown as an include in your page index. Hopefully in future AM releases there will be an option to include or not include hidden categories in navigation. Tongue

Also, your Featured Articles will naturally not be available in their normal category indexes -- nor will they be viewable or available in the Webfeed Generator. But it's a small price to pay for the feature, IMO.

DEMO SITE:
You can see this in action at RacingPress.com. It's not fancy, but it works.

Hopefully a similar featuring mechanism will make its way into AM 2.0 (albeit in much more polished form!), but for now this should be a good workaround.


(This post was edited by Zyllyx on Oct 15, 2002, 11:11 AM)
Attachments: feature.zip (1.08 KB)