PDA

View Full Version : How to insert a "more..." Link


fantasto
06-20-2007, 09:02 AM
Hello,

i have a little issue:
The link in the directory listing has 300 characters and there is a link "details". when it is clicked the detailpage is almost the same than the listing page, it has also 300 characters. 1.this make no sense for a detail-page when there are not more information (alexa, amazon deactivatet). 2. google can see the detailpage as double content.
i prefer this way: in the directory listing should the characters be shorten to e.g. 200 and in the detailpage should be more characters possible e.g. 500. like the "read more..." style.
if i set in the admin control the min-max characters it is always for both listing-page and detail-page.
i´ve got version 2.1.03
where can i configure this ? please help
thank you

Sergey Ten
06-20-2007, 10:15 AM
Hello and welcome to our support forum fantasto,

Please following the directives;

[ Open your template/your_template/link-display.tpl ]
[ Find code ]


<div class="description">{if $config.html_tags}{$link.description}{else}{$link. description|escape:"html"}{/if}</div>


[ Replace with ]


<div class="description">{if $config.html_tags}{$link.description|truncate:200:""}{else}{$link.description|escape:"html"|truncate:200:""}{/if}</div>


[ Save change ]


[ Open your templates/your_template/view-link.tpl ]
[ Find code ]


{if $config.html_tags}
{$link.$key}
{else}
{$link.$key|escape:"html"}
{/if}


[ Replace with ]


{if $config.html_tags}
{if $field.name eq 'description'}
{$link.$key|truncate:500:""}
{else}
{$link.$key}
{/if}
{else}
{if $field.name eq 'description'}
{$link.$key|escape:"html"|truncate:500:""}
{else}
{$link.$key|escape:"html"}
{/if}
{/if}


[ Save change ]

fantasto
06-20-2007, 10:59 AM
it works perfect :)

many thanx !