Gravatar for ldione@cim.org

Question by Lorent Dione, Mar 11, 2017 10:18 AM

How to make JSUI search result title not clickable

Hello

How can I make the title in a jsui search result not clikable?

Here is my simple template

<div class="coveo-result-frame">
    <div class="coveo-result-row">
        <div class="coveo-result-cell" style="padding-left:15px">
            <div class="coveo-result-row">
                <div class="coveo-result-cell" style="font-size: 18px">
                    <a class="CoveoResultLink"></a>
                </div>
            </div>
        </div>
    </div>
</div>
1 Reply
Gravatar for flguillemette@coveo.com

Answer by François Lachance-Guillemette, Mar 13, 2017 9:08 AM

CoveoResultLink is using the title and clickUri field to generate the clickable tag.

You could implement your own custom implementation that has your required behavior.

Something simple like this:

<span>{{= clickUri }}</span>

Will output the clickUri without any link.

What is your use case exactly? CoveoResultLink is also used to track click events in the analytics, so I would not recommend removing it.

Refer to the Result Template documentation for more information.

Ask a question