Integrating a Coveo .NET Search Interface in a non ASP.NET Site
You must set up the following elements to use the bootstrapper:
-
An iframe that handles the navigation history.
-
A script tag that loads the Coveo JavaScript Library.
-
A div placeholder tag in which the Coveo controls are inserted.
-
A script tag that calls the Coveo library to insert content into the placeholder.
To bootstrap a Coveo .NET search interface in a non .NET HTML page
-
Using an administrator account, connect to the Coveo Master server.
-
In Internet Information Services (IIS) Manager:
-
Add a new Website named Bootstrap.
-
Under the Bootstrap Website, create a new Virtual Directory named CES7.
-
Create an Application named CES7
-
Set the local path to [CES_Install_Path]\Web.
-
-
Using a text editor:
-
Create a default.htm file at the root of the Bootstrap Website.
-
Paste the following code in the file.
<html> <body> <iframe id="__historyFrame" src="empty.htm" style="display:none" ></iframe> <script type="text/javascript" src="/CES6/Coveo/CustomContent.aspx?k=embedding"></script> <div id="here"> Loading... </div> <script> Coveo.CNL.Web.Scripts.Ajax.Bootstrap.insertAjaxAspNetPage("/CES6/", document.getElementById('here'),true); </script> </body> </html>
-
Save the file.
-
-
Browse default.htm.