Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
How to add last five headlines from a category?

 

 


nigelparry.net
User

Aug 18, 2002, 10:42 PM

Post #1 of 3 (2683 views)
Shortcut
How to add last five headlines from a category? Can't Post

Can someone please put me out of my misery here? I've looked at all the help and I'm stumped.

What I am looking for here is a way of including the last 5 headlines from a category of my choice, in a bar on the page. I do not mean via a webfeed and I don't mean all the latest headlines from all the categories that the default installation comes with.

Is there a $variable$ that is $headlines_cat3$ which just lists the last five headlines from category 3?

Surely it must be that easy?

The headlines.html solution that the headlines template produces is not an answer, because once you start browsing further than the category index page, the includes stop working, as they are being called from a *.cgi file and not an *.shtml file.

Nigel Parry
_____________________

For more information about Nigel Parry and nigelparry.net 
websites please see http://nigelparry.net

nigelparry.net: award-winning communications 
solutions for clients with something to say

Website & print design
Internet, public relations & media consulting

(This post was edited by nigelparry on Aug 19, 2002, 10:15 AM)


Dave
Staff / Moderator


Aug 18, 2002, 11:29 PM

Post #2 of 3 (2679 views)
Shortcut
Re: [nigelparry] How to add last five headlines from a category? [In reply to] Can't Post

There is a placeholder for the "latest headlines" include file for the category that you're in, it's $file_headlines_bycat$.

It sounds like you want to include headlines from a specific category though. To do that, you'll need to know the name of the "latest headlines" include file for that specific category. If you haven't changed the default naming under Setup Options it will likely be called something like "cat_headlines_1.shtml" where "1" is the category number.

You can add the following to the file you want the headlines to appear in and it should display on both .shtml and .cgi pages:

<!-- INCLUDE HEADLINES FROM CATEGORY #1 -->
<!--#include file="cat_headlines_1.shtml" -->
<!-- template include : cat_headlines_1.shtml -->

Let me know if that does the trick.

Dave Edis - Senior Developer
interactivetools.com
 


nigelparry.net
User

Aug 19, 2002, 8:05 AM

Post #3 of 3 (2664 views)
Shortcut
Re: [Dave] How to add last five headlines from a category? [In reply to] Can't Post

Thanks for the shortcut field to the latest headlines in the same category.

Although the documentation on ArtMan is comfortably above average and the support/forums take the edge off undocumented areas, one area of improvement might be the explanation of fields and templates. When I was reading that section, I felt like I'd arrived late at the class and had missed the main thing we were talking about, that put the rest in context.

The above ArtMan-specific solution (your custom template include tag) works fine. Thank you!

Cheers,

Nigel
_____________________

For more information about Nigel Parry and nigelparry.net 
websites please see http://nigelparry.net

nigelparry.net: award-winning communications 
solutions for clients with something to say

Website & print design
Internet, public relations & media consulting

(This post was edited by nigelparry on Aug 19, 2002, 10:14 AM)