Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Links not Showing

Quote Reply
Links not Showing
hi, there.
i just set up and got working Links v 2.0 (the latest version from the site as of 2 days ago).
i got everything working, and modified the templates. got those working.
now just *one* problem. when i build the pages (any way: all, stagger, stagger auto, etc), i go to the main page. the pages/index.shtml (in my case) page. it says i have 2 links (correctly). then click on the only category i have set up, and go to it's page. it is supposed to have those 2 links, but it shows nothing. on the category page, it shows no links, and no numbers.

see for yourselves:
http://www.theoretic.com/entertainment/music/pages

------------------
Theoretic Internet Services (http://www.theoretic.com)
'Your Web Hosting, Button Exchange, and Weather Forecasts Solution, with Just Two Words: Quality and Privacy'
Quote Reply
Re: Links not Showing In reply to
Does your category.html template file contain the <%links%> tag under the "Links:" header? If so, are the links inside another table in the links.html template file? Is the table and all its elements closed properly?

[This message has been edited by Bobsie (edited June 06, 1999).]
Quote Reply
Re: Links not Showing In reply to
Yes, No, Yes.

Smile

thanks for your help. Smile you can take a look at the file at http://www.theoretic.com/category.html
i have put it there for you to take a look at if you wish.
Quote Reply
Re: Links not Showing In reply to
okay, update:

i found out that the unmodified template is working, but when i replace it with my modified template, it does not.

does it have something to do with tables? in the modified template, it is located within 1 level of tables.

------------------
Theoretic Internet Services (http://www.theoretic.com)
'Your Web Hosting, Button Exchange, and Weather Forecasts Solution, with Just Two Words: Quality and Privacy'
Quote Reply
Re: Links not Showing In reply to
In your template, your code looks like this:

Code:
<h2><font face="Verdana, Arial, Helvetica, sans-serif">Categories:</font></h2>
<font face="Verdana, Arial, Helvetica, sans-serif"><%category%> <%endif%>
<!-- Links in this category. --> <%if links%> </font>
<h2><font face="Verdana, Arial, Helvetica, sans-serif">Links: </font></h2>
<font face="Verdana, Arial, Helvetica, sans-serif"><%links%> <%endif%> <!-- Next/Previous links if spanning pages. -->

The things I bolded cannot be on lines together using the default Template.pm script that comes with Links. You have to put all <%if...%> and <%endif%> variables on lines by themselves.

I hope this helps.

[This message has been edited by Bobsie (edited June 08, 1999).]