I've been messing around with the wonderful Links 2.0 script, and was wondering if there was any way to change the category menu page format.
As I'm sure you all know, it currently lists the links with the descriptions under it on the main index page in 2 columns (default).
This is good, but I'd like to have all the links to all my categories in a simple pulldown list. No descriptions, or any of the other default stuff. Just the list of links in a pulldown menu. I've got lots of them, and think everything in a list would be a lot easier.
Now I've messed around with the code in the sub site_html_print_cat section of the site_html_templates.pl file, which I noticed has a standard table code for what seems to be the 2 column category default list. I tried changing it to the CGI/pulldown form code, but it was a no go and just crashed the script.
The way I'm trying to do it, is add the regular pulldown form code (beginning and end) to the home.html file with the Links 2.0 Category tag in the middle, like so...
<FORM METHOD=POST ACTION="/cgi-bin/go.cgi">
<SELECT NAME="url" size=1>
<%category%>
</select>
<INPUT TYPE=submit VALUE="GO">
</FORM>
What I'm trying to get the script to do, is create the:
<option value="<%URL%>">-- <%Name%>
part of the code, that inserts all the links to the category pages between the form HTML already on the home.html template, which will complete the pulldown list when pages are built.
I hope that made sense. So, has anyone done this, or know what to change in the script to make it work right? I'd be very grateful if someone would share their knowledge, since I'm not much of a CGI expert. If you think I'm wasting my time trying something that can't be done, then let me know. I've searched the forum archives, but only found code on how to add a pulldown to the search box on the search page.
Thanks in advance!
Joe
[This message has been edited by Defraggle (edited September 16, 1999).]
As I'm sure you all know, it currently lists the links with the descriptions under it on the main index page in 2 columns (default).
This is good, but I'd like to have all the links to all my categories in a simple pulldown list. No descriptions, or any of the other default stuff. Just the list of links in a pulldown menu. I've got lots of them, and think everything in a list would be a lot easier.
Now I've messed around with the code in the sub site_html_print_cat section of the site_html_templates.pl file, which I noticed has a standard table code for what seems to be the 2 column category default list. I tried changing it to the CGI/pulldown form code, but it was a no go and just crashed the script.
The way I'm trying to do it, is add the regular pulldown form code (beginning and end) to the home.html file with the Links 2.0 Category tag in the middle, like so...
<FORM METHOD=POST ACTION="/cgi-bin/go.cgi">
<SELECT NAME="url" size=1>
<%category%>
</select>
<INPUT TYPE=submit VALUE="GO">
</FORM>
What I'm trying to get the script to do, is create the:
<option value="<%URL%>">-- <%Name%>
part of the code, that inserts all the links to the category pages between the form HTML already on the home.html template, which will complete the pulldown list when pages are built.
I hope that made sense. So, has anyone done this, or know what to change in the script to make it work right? I'd be very grateful if someone would share their knowledge, since I'm not much of a CGI expert. If you think I'm wasting my time trying something that can't be done, then let me know. I've searched the forum archives, but only found code on how to add a pulldown to the search box on the search page.
Thanks in advance!
Joe
[This message has been edited by Defraggle (edited September 16, 1999).]