Contents tagged with Orchard

  • Creating an Advanced Search

    Orchard, Indexing, Search, Advanced Search

    Introduction

    Use this guide to help you navigate some aspects of customizing the search in Orchard. Afterwards you will be able to index fields of a part in the example I will be using price and indexing a quick mock of products.

    Download package

    Using the code

    The key parts are:

    • indexing (if you are including custom fields) To include the data in the index catalog it will need a ContentHandler that has a bit of code like:
      • OnIndexing<TestPricePart>((context, part) =>
      • context.DocumentIndex.Add("price", part.Record.Price)
      • .RemoveTags()
      • .Analyze()
      • );
    • Create a custom search service implementing the priorities of your search and fields to search on
    More...
  • Content Item Slider

    Orchard, Projection, Layout, Alternate

    Download Package

    Aim: Produce a slider carousel that displays a list of content items. Lets pick a random slider (why not).

    Needed: Orchard.Projections; Unslider

    The module can be achieved quite quickly with the following steps:

    1. Create a module
    2. Create a layout definition for the content query
    3. Create a view and enable the JavaScript for the slider
    4. Some styling
    5. Create a projection - remember to select a different layout to the default one, such as: SliderDetailLarge. Otherwise the content will be displayed as a simple list.
    More...