Gravatar for

Question by allanferencz, May 16, 2017 7:32 PM

Implementing quick view on pdf

I'm working on my search page results page and I was asked to include quick view for PDF items.

I have tried reading the documentation, but it didn't seem to be related to my problem.

I have included the code below and it didn't resolve my problem.

<div data-title="{{= Title }}"></div>

To be clear, I'm trying to add the quick view that comes with the out of the box Sitecore Coveo search page.

How should I go about doing that?

2 Replies
Gravatar for

Answer by Sébastien Belzile, May 16, 2017 7:50 PM

Of course it is not going to work if you try adding the title instead of the quickview :-).

The quickview documentation is here. You could look at the OOTB Coveo search page to help you out on this.

Basically, the only thing you need is a Quickview component in your result template.

I will be glad to help if you need more precisions.

Gravatar for

Comment by Sébastien Belzile, May 16, 2017 7:52 PM

By the way, when you add a Coveo component, the `class` of the component is what matters the most, like in this example:

<div class="CoveoQuickview" data-title="{{= Title }}"></div><br>
Gravatar for

Answer by allanferencz, May 16, 2017 7:54 PM

Oh, that's the wrong line of code X-X

<div class="CoveoQuickView"></div>

I will take a look at that documentation, Thanks!

Gravatar for

Comment by Sébastien Belzile, May 16, 2017 7:56 PM

You used JS UI 0.9 documentation. Coveo for Sitecore 4.0 ships with JS UI 1.0.

`CoveoQuickView` has been renamed `CoveoQuickview` in that version (casing of the v).

Ask a question