Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • In order to override the default view file the Hawksearch search box widget uses you need to create a razor view file in your live application frontend project at Views/Shared/Components/SearchBox/Default.cshtml.

  • In order to add additional templates, create corresponding view files under Views/Shared/Components/SearchBox/ .

    When displayed in the widget settings, they will be split by capital letters and words after the first will be lowercased. So a view file called β€œSearchBoxTemplateOneβ€œ will be displayed like β€œSearch box template one” in the widget settings.

    The way the connector is designed it will automatically find the razor view files in that folder and use them. Below is the Default.cshtml code used.

...