Gossamer Forum
Home : Products : Links 2.0 : Customization :

Customizing templates...

Quote Reply
Customizing templates...
Hey,

How can i change the way a category is printed out when building cool pages and search, right now its right above the link and inserts a space before it, you can see what i mean here:

http://wwwebmasters.net/tutorials/Cool/

How can i change this so the category name doesnt put a space above it and increases the size of actual category font... where can i find these settings, i looked through the .pl files but no luck

maybe i missed it?

thanx

Quote Reply
Re: Customizing templates... In reply to
Edit sub_build_cool_page in nph-build.cgi =>
Code:
$link_results .= qq|<P><A HREF="$build_root_url/$category/$build_index">$category_clean</A>\n|;
Thomas
http://links.japanref.com
Quote Reply
Re: Customizing templates... In reply to
hey thanx.. that fixed the new / cool pages

how do i do the same thing for search?

http://wwwebmasters.net/cgi-bin/cgiwrap/wwwebmasters/tutorial/search.cgi?query=wires

=\



Quote Reply
Re: Customizing templates... In reply to
I think you just need to edit in search.cgi (at the bottom of the file;

$output .= qq|<A HREF="$build_root_url$path/">$dir</A>:|;

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Customizing templates... In reply to
You can edit these codes in search.cgi if you want to remove cats altogether :
Code:
foreach $category (@category_results) {
if ($nh == 1) {
$cat_clean = &build_clean($category);
$linked_title = &build_linked_title ($category);
$category_results .= qq|<li>$linked_title\n|;
}
and the codes Andy provided in case you would like to edit the category output.

Thomas
http://links.japanref.com