Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Individual Links Have Disappeared From Cat Pages

Quote Reply
Individual Links Have Disappeared From Cat Pages
Hi -
I am not sure what I have done, but all of my individual links have disappeared from view on the category pages. The sub-cat links to these categories and the "Related" links are showing. The links are in the database and can be viewed from the admin panel.

I have done build-alls and staggered builds to no avail. I don't see anything on the category.html page or link.html that would do this, but that doesn't mean it "isn't" the problem... I just don't know enough about this script.

If anyone can give suggestions on what to check, I would be grateful.
--
Quote Reply
Re: Individual Links Have Disappeared From Cat Pages In reply to
Check the following:

1) You are using the following codes in the category.html file:

Code:
<%links%>

2) Make sure that you have the following codes defined in your sub site_html_category routine in the site_html_templates.pl:

Code:
sub site_html_category {
# --------------------------------------------------------
# This rountine will build a page based for the current category.

return &load_template ( 'category.html', {
date => $date,
time => $time,
category => $category,
links => $links,
title_linked => $title_linked,
title => $title,
total => $total,
grand_total => $grand_total,
category_name => $category_name,
category_name_escaped => $category_name_
escaped,
category_clean => $category_clean,
description => $description,
meta_name => $meta_name,
meta_keywords => $meta_keywords,
prev => $prev,
next => $next,
related => $related,
build_links_per_page => $build_links_per
_page,
top => $top,
%globals
} );
}

Also, what Mods or Templates have you installed recently??

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------





[This message has been edited by Eliot (edited January 07, 2000).]
Quote Reply
Re: Individual Links Have Disappeared From Cat Pages In reply to
hi Elliott -
I have templates. All I have done lately is modify the category.htm template page to remove a table box that appeared to the right of the section where the links should now be appearing. However, I checked the pages after that (it was a few days ago) and the links showed up after rebuilding.

I will check the file to see if the subroutine is there correctly.
Quote Reply
Re: Individual Links Have Disappeared From Cat Pages In reply to
 
Quote:
I have templates.

DAH...The codes I gave are from site_html_templates.pl and the link.html template file.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------



Quote Reply
Re: Individual Links Have Disappeared From Cat Pages In reply to
Elliott -
My site_html_templates.pl subroutine was like yours except mine had:
header => $header
footer => $footer
(but I left those there)

and did not have the:
top => $top
(so I added that)

My templates folder has a file called link.html. The code is like this:

<ul><li><font size="2" face="arial"><b><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_blank"><%Title%></a></b></font>



<%if Description%>

<font size="2" face="arial"><br> <%Description%></font>

<%endif%>





</ul>

Maybe I have messed up the code on the category.html page. This is the area that has the code... all of it works except the area with "Links in this category".

<table border=0 cellpadding=0 width="80%">

<!-- Subcategories-->

<%if category%>

</table>

<p><font face="Arial"><b>Categories:</b></font></p>

<font face="Arial" size="2"><%category%></font>

<%endif%>



<!-- Links in this category. -->

<%if links%>

<p><font face="Arial" size="2"><b>Links:</b></font></p>

<font face="Arial" size="2"><%links%></font>

<%endif%>



<!-- Next/Previous links if spanning pages. -->

<p align=center>

<%if prev%>

<font face="Arial" size="2"><a href="<%prev%>">Prev <%build_links_per_page%></a></font>

<%endif%>

<%if next%>

<font face="Arial" size="2"><a href="<%next%>">Next <%build_links_per_page%></a></font>

<%endif%>

</p>



<!-- Related Categories -->

<%if related%>

<p><font face="Arial" size="3"><b>Related Categories:</b></font></p>

<ul><font face="Arial" size="2"><%related%></font></ul>

<%endif%>

I am sorry to be so dense about this: I didn't install it and haven't worked on it for a long time (casualty of time devoted to other work)... :-(