Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
More Headlines link...

 

 


InSite
User

Sep 4, 2002, 3:20 AM

Post #1 of 3 (2192 views)
Shortcut
More Headlines link... Can't Post

Hi,

Have been using Article Manager for a while now - great program Laugh

I have recently switched all the file extensions from shtml to php, and there is a problem when I click on the "More Headlines" link on the home page. It seems to process the PHP code as HTML, as it is calling the default template. This means that the page doesnt reload properly.

I have taken out most of the PHP code now, and just left one include on the home page so you can see the effect - the headlines on the right wont reload. www.footballforums.net

Do you have a work around for this?

thanks :)


Luke
Staff / Moderator


Sep 4, 2002, 3:29 PM

Post #2 of 3 (2167 views)
Shortcut
Re: [InSite] More Headlines link... [In reply to] Can't Post

Hi,

When clicking the "more headlines" link, the next batch of articles is output using the search.cgi script. Unfortunately dynamic pages (like that output by search.cgi) can't include standard SSIs.

While the search engine doesn't technically support SSIs, it can include other "template" or published files with a special tag. You might notice in some of the templates we use both. One works for the web server and one for the cgi script.

Here's an example of a template include:

<!-- template include : /artman/publish/headlines_bycat.shtml -->

So in your /index/default.html template file you would use both a standard SSI and a template include to include files in the published pages and the pages output by search.cgi, respectively.

<!--#include file="$file_headlines_bycat$" -->
<!-- template include : $file_headlines_bycat$ -->

One other thing, because the file you're including is a PHP file, CGI scripts that output content dynamically (like search.cgi) will not be able to include PHP files and execute them. Only static, published files (like the main article index) will be able to include PHP files.

I hope this helps. :)
Luke Holzken
Product Development


InSite
User

Sep 5, 2002, 11:50 AM

Post #3 of 3 (2146 views)
Shortcut
Re: [Luke] More Headlines link... [In reply to] Can't Post

Thanks for the reply - Time for me to do some more tinkering then! Sly

One problem with Article Manager is that it is SO good, you automatically want it to run your whole website, not just act as an advanced news engine! Hats off you to you all for such a great program Smile