Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to remove the empty lines in the detailed.html page????

Quote Reply
How to remove the empty lines in the detailed.html page????
Hallo,
My detailed pages ist generated as fallows:
/Maiks%20Service%20at%20Costa%20Blanca.html

but i want to have like:/Maiks_Service_at_Costa_Blanca.html

How do I set this up?

Thanks in advance
Quote Reply
Re: [all4u] How to remove the empty lines in the detailed.html page???? In reply to
Is this the apge title (top of browser), linked title (breadcrumb trail), a link, or what? Have you made any changes to the code? A link to see what you mean would help. The fix depends on which item needs changing...


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] How to remove the empty lines in the detailed.html page???? In reply to
Hi.
all the changes following mod instructions
http://www.gossamer-threads.com/...etailed.html;#248847
an example:
http://www.alles4u.de/...0Waldschutz%20!.html
Thanks:)
Quote Reply
Re: [all4u] How to remove the empty lines in the detailed.html page???? In reply to
OK, that makes sense now... Try this:

Code:
$title_linked = &build_linked_title ("$rec{'Category'}/$rec{'Title'}");
my $_file = $rec{'Title'} . "/" . $build_extension/
$_file =~ tr/ /_/; #replace space with underscore


That should do the trick.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] How to remove the empty lines in the detailed.html page???? In reply to
Thanks for your help PerlFlunkie
It works now(The detaileds are generated that I wish).But How Can l a link to the detailed page from category pages?
href="<%detailed_url%> does not working.

Thanks
Quote Reply
Re: [all4u] How to remove the empty lines in the detailed.html page???? In reply to
In site_html_templates.pl:

Code:

sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like.
my %rec = @_;
my $det = $rec{'Title'};
$det =~ tr/ /_/; #replace space with underscore

# Set new and pop to either 1 or 0 for templates.
($rec{'isNew'} eq 'Yes') ? ($rec{'isNew'} = 1) : (delete $rec{'isNew'});
($rec{'isPopular'} eq 'Yes') ? ($rec{'isPopular'} = 1) : (delete $rec{'isPopular'});
return &load_template ('link.html', {
detailed_url => "$db_detailed_url/$det$build_extension",
%rec,
%globals
});
}


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] How to remove the empty lines in the detailed.html page???? In reply to
Many, many thanks Smile