Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

adding categorie

Quote Reply
adding categorie
I am new to Link sql, so far it is installed.

Starting with adding categories, what are these fields and how to fill :

Header footer, Number_of_Links, Has_New_Links, Has_Changed_Links and Newest_Link

Thanks,

Quote Reply
Re: adding categorie In reply to
Well I can help out by saying what I know of a few of them:

Header: Put anything you want there, and it will display where the header tag is in the templates, same goes for footer, usually header is at the top and footer is at the bottom.

Harrison


"I've got if's pretty good, but that's about it"
Quote Reply
Re: adding categorie In reply to
Header : Text -- or an include file -- you want to show up as the <%Header%> tag for that category.

Footer : Text -- or an include file -- you want to show up as the <%Footer%> tag for that category.

Number_of_Links : Used during the "build_stats" procedure to count the number of links in the category and it's children.

Has_New_Links : A flag set during the build-stats phase, that signifies if any of the links are "new" in this category or sub-category. Based on the $LINKS{build_new_cutoff} set in the Links.pm file.

Has_Changed_Links : A flag set during the build-stats phase, that signifies if any of the links are "updated" in this category or sub-category. ie: if the Mod_Date comes AFTER the Add_Date and is less than the $LINKS{build_new_cutoff} $LINKS{build_new_cutoff} set in the Links.pm file.

Newest_Link : age of the newest link, for date calculations so you can put up different levels of graphics based on how "new" a link is.


PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: adding categorie In reply to
Thanks

Quote Reply
Re: adding categorie In reply to
I tried to use a table in the footer, but it doesn't show up.
Example:
<table width="95%" border="1" cellspacing="0" cellpadding="1" bordercolor="#000000">
<tr align="center">
<td><a href="Cflorida.htm" target="_top">Central
Florida</a></td>
</tr>
</table>
If this doesn't work, what will?

Quote Reply
Re: adding categorie In reply to
weto,

Did you upload the new 'footer.txt' file to your templates directory, did you upload it in ASCII format, and have you included the <%Footer%> tag in the your templates?

You'll have to rebuild after you've made a change to the footer.txt file so the new footer HTML is added to your pages. It could also be a nesting problem with the table itself. Have a look at the source of one of your pages after you've rebuilt to see if the actual HTML of the footer.txt file has been added to the page.

Hope this helps.

All the best
Shaun

Quote Reply
Re: adding categorie In reply to
I know how the footer works and use it if the same footer.txt can be used throughout the web site.
But now what if I want to use a different footer for each category?
In the admin section (add category) you can fill out the header and footer. Because I used html in 'description', I figured I could do the same in footer.
Description works fine, but the footer doesn't show up...

Quote Reply
Re: adding categorie In reply to
In Reply To:
But now what if I want to use a different footer for each category?
Simply type in the file name of the file for the category, like:

Header: artsheader.html
Footer: artsfooter.html

Then upload the files in your templates directory.

Then add the following tag in your category.html file as qango pointed out:

Code:

<%if Header%>
<%Header%>
<%endif%>
<%ifnot Header%>
<%include header.txt%>
<%endif%>
<%if Footer%>
<%Footer%>
<%endif%>
<%ifnot Footer%>
<%include footer.txt%>
<%endif%>


That's all there is to it.

Regards,

Eliot Lee