Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Include an item in each category

Quote Reply
Include an item in each category
I've looked through some of the stuff on custom headers/footers etc but it's not exactly what I'm looking for.

What I need to do for my links directory is on certain pages include an external file, e.g. the latest news on that subject, caledars, pull of the latest forum threads etc.

Now if I was using the static build I could put <?php include("includefile.php"); ?> to bring in a file which had been put in that directory which does the necessary.

What I need is something that does that using dynamic pages, so I can include a different php (or just html) file for each category, without having to have different copies of the whole category template for each one.

Quote Reply
Re: Include an item in each category In reply to
Well... either use the <%include%> tag (I think that will do it),

or just put the file name in the Header or Footer field, and links will automatically include that file. It will also parse it for you, so you can make it a template.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Include an item in each category In reply to
Well... either use the <%include%> tag (I think that will do it), or just put the file name in the Header or Footer field, and links will automatically include that file. It will also parse it for you, so you can make it a template.
----------------------------------------------------------

I think putting the file in the header for a specific category sounds like what I'm looking for. How do I put the file into the header, just type it's name? What syntax do I need to use?

In category.html do I just put <%include "fileInHeader" %> ??