PDA

View Full Version : Linking & Result Questions...


ohiobiz
08-11-2006, 01:46 PM
I have a few questions:


1. In the search results area, for the same listing that is in multiple categories, how/where do I modify the code to only allow that listing to show up once in the results instead of say twice if it is listed in two different categories?


2. I have some listings that have no URL, how can I make the title listing either link to the listing's detail page instead of, by default, be redirected to that listing's category page? Or could I just deactivate the link that is the title of the listing and just activate a link when there is a URL involved? Where/how do I do this?

Thanks a lot.

WTM
08-11-2006, 05:57 PM
I have a few questions:


1. In the search results area, for the same listing that is in multiple categories, how/where do I modify the code to only allow that listing to show up once in the results instead of say twice if it is listed in two different categories?


2. I have some listings that have no URL, how can I make the title listing either link to the listing's detail page instead of, by default, be redirected to that listing's category page? Or could I just deactivate the link that is the title of the listing and just activate a link when there is a URL involved? Where/how do I do this?

Thanks a lot.

2. To remove link from title please open your link-display.tpl file

find code:<div class="title">{if $link.crossed}@{/if} <a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{if $config.esc_codes}{text_to_html aText=$link.title aParagraph=true}{else}{$link.title}{/if}</a>
{section name=star loop=$link.rank}<img src="{$img}star.png" alt="" />{/section}
</div>and replace with code:<div class="title">{if $link.crossed}@{/if} {if $config.esc_codes}{text_to_html aText=$link.title aParagraph=true}{else}{$link.title}{/if}
{section name=star loop=$link.rank}<img src="{$img}star.png" alt="" />{/section}
</div>

ohiobiz
08-12-2006, 03:27 AM
Thanks a lot WTM for help with Question 2.

Can anyone help me with the first question to get rid of multiple search results that show when I link is more than one category? I only want one result to show in the search results per listing.