Gravatar for gminero@coveo.com

Question by gminero, Jul 14, 2016 10:54 AM

Document quickview html

Is there a way to obtain the html from the document quickview other than using the OOTB quickview button?

For Example, If I would like to use this in my page and display it under a div element rather than having to use the Modal window at a top level. which grays out the rest of the page?

Thanks

1 Reply
Gravatar for olamothe@coveo.com

Answer by olamothe, Jul 14, 2016 11:00 AM

All the actions that any UI component execute against the index uses the SearchEndpoint class.

External code can also use this class

In your case your probably want to use the getDocumentText or getDocumentHtml call.

var myEndpoint = Coveo.SearchEndpoints.endpoint['default'];
myEndpoint.getDocumentText('some-document-id').done(function(content) { // do stuff with the content })
Ask a question