Gossamer Forum
Home : Products : Links 2.0 : Customization :

detailed.html page problem.

Quote Reply
detailed.html page problem.
I'm displayin the category of the resource on the detalied page.

I use <%Category%> tag.

It prints is like this "My_Selected_category"

I want it to print with out "_"

It also does that when I modify a resource.

How can I change this

Thanks

IntellieCrazy
Quote Reply
Re: [intellie] detailed.html page problem. In reply to
I'm not sure if it works in detailed pages, but you could try <%category_clean%>
Quote Reply
Re: [wysardry] detailed.html page problem. In reply to
No it doesn't work, I tried that already.

Thanks for your help (wysardry)



intellie Crazy
Quote Reply
Re: [intellie] detailed.html page problem. In reply to
Did you add this: category => $category, to the sub in site_html_template.pl? If so, and you're still having problems, maybe change it to this: category => $build_clean,






Leonard
aka PerlFlunkie
Quote Reply
Re: [intellie] detailed.html page problem. In reply to
in sub site_html_detailed of the site_html_templates.pl file I see

title_linked => $title_linked,

Why not do the same thing for the clean title which means changing the sub build_detailed_view in nph_build.cgi

maybe change
$title_linked = &build_linked_title ("$rec{'Category'}/$rec{'Title'}");

to
$title_linked = &build_linked_title ($rec{'Title'});

and underneath that, add

$category_clean = &build_clean ($rec{'Category'};

Then in site_html_detailed after
title_linked => $title_linked,

add
category_clean => $category_clean,



Then you can use <%title_linked%> and <%category_clean%> as needed in detailed.html


but this is way too early in the morning for me...Pirate


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [esm] detailed.html page problem. In reply to
Thanks a lot ESM. That worked perfectly.



intellie Crazy