CyberStore Ecommerce 2023 Documentation
NovoSearchControl Class
Members  Example 


Dovetail.Ecommerce.Controls Namespace : NovoSearchControl Class
A novo search control. Introduced in v2.5.
Property Usage

By changing the values of the control's properties in the SitePages.config file for your Site, you can enable or disable certain behaviors, set certain defaults, alter aspects of the display or otherwise cusomtize your site's implementaion of the control.

The following describes properties pertaining to key functional areas of the control that can be configured to suit your needs.

Acronym Properties

The DMS_SiteID gets or sets the novo Site_ID to include in the Search.

The EVE_CalendarLinkName gets or sets the novo Link Name for the default Events Calendar Page.

The FAQ_FAQLinkName gets or sets the novo Link Name for the default FAQ Page.

The ITM_ProductsLinkName gets or sets the novo Link Name for the default Products Listing Page.

The JOB_JobsLinkName gets or sets the novo Link Name for the default Jobs Listing Page.

The NWS_NewsListingLinkName gets or sets the novo Link Name for the default News Listing Page.

Search Properties

The SearchEvents gets or sets a value indicating the inclusion of novo Events in the Search.

The SearchFAQ gets or sets a value indicating the inclusion of novo FAQ in the Search.

The SearchJobs gets or sets a value indicating the inclusion of novo Jobs in the Search.

The SearchLiterature gets or sets a value indicating the inclusion of novo Literature in the Search.

The SearchMultiSite gets or sets a value indicating the inclusion of novo Multi-Site in the Search.

The SearchNews gets or sets a value indicating the inclusion of novo News in the Search.

The SearchPages gets or sets a value indicating the inclusion of novo Pages in the Search.

The SearchProducts gets or sets a value indicating the inclusion of novo Products in the Search.

The UrlLinkRoot gets of set the URL Root to prefix result links with.

Properties Inherited from the Base CyberStoreBaseControl

Properties specific to the CyberStoreBaseControl can be listed in the following categories:

Override Properties

When the IgnoreControl property is set to true, all processing of a control is skipped, and the control's Visible property is set to false ensuring that it is not rendered in the resulting CyberStore page.

Contextual Properties

Contextual properties define specific details about the current instance of the control based on context. Context can be set by any number of factors including the log in state of the Shopper, the Site being visited, or the properties that have been established for a control.

The AttributesBag property is used internal to control processing and is the collection of attributes, or properties, and their values based on how the control is configured. The attributes in this property are set by processing the SitePages.config file as well as any specific declared property values in any registered sub controls. It allows for the passing down of all properties to a control and any registered sub controls.

The ComConfigUserData and Site_ID properties are read-only values made available to all CyberStore controls to aid in processing and establishing context about the Site and Shopper.

Example
<Control src="NovoSearchControl.ascx" />
Control Markup

The following is the markup for this control.

Developer's Note:

To create a custom version of the control, copy all of the code below into a file of the same name and place it into your Site's control folder (e.g., ../YourSiteFolder/Control). The CyberStore page engine will then override the default markup with your customized version.

 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NovoSearchControl.ascx.cs" Inherits="Dovetail.Ecommerce.Controls.NovoSearchControl" %>
<style>

    .novoSearchResultsTable {
        width: 900px;
        margin-left:40px !important;
    }

    .novoSearchResultsTable tr {
    }

    .novoSearchResultsTable td {
        vertical-align: top;
        border-bottom:1px solid #ABABAB;
        padding:10px;
    }

    .novoSearchResultsTable td a {
        font-weight: bold;
        font-size: 12px;
        color:#d0203f;
    }

    .novoSearchResutlsAbstract {
        font-family:Arial, Helvetica, 'Liberation Sans', FreeSans, sans-serif;
        font-size:12px;
        color:#8A8A8A;
    }
    
        
</style>
<asp:DataList ID="novoSearchResultsList" EnableViewState="false" runat="server" RepeatLayout="Table" CssClass="novoSearchResultsTable">
    <ItemTemplate>
            <div style="float:left;display:table-cell;padding:0px 20px;margin-right:5px;">
                <img src="/ecommerce/site/themes/images/<%# DataBinder.Eval(Container.DataItem, "ResultType")  %>ResultsIcon.png" alt="<%# DataBinder.Eval(Container.DataItem, "ResultType") %>" />
            </div>
            <div style="display:table-cell;min-height:45px;">
                <%# DataBinder.Eval(Container.DataItem, "URLSTR")%>
                <br />
                <div class="novoSearchResutlsAbstract"><%# DataBinder.Eval(Container.DataItem, "Abstract")%></div>
            </div>
    </ItemTemplate>
</asp:DataList>
Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.TemplateControl
         System.Web.UI.UserControl
            Dovetail.Ecommerce.ControlBases.CyberStoreBaseControl
               Dovetail.Ecommerce.Controls.NovoSearchControl

See Also

Reference

NovoSearchControl Members
Dovetail.Ecommerce.Controls Namespace