Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

Shamrez Iqbal
Oct 27, 2009
  5770
(2 votes)

FindPagesWithCriteria Gadget

My contribution to the Gadget Contest is a gadget for doing findpageswithcriteria-calls.

I haven’t done asp.net MVC coding before this so it was a new and interesting experience.

Some points of interest – although the introduction to gadgets article talks about extension-methods for htmlhelper-classes it seems like you do not get Intellisense in the views.

Did also experience that the Intellisense was working but the Html-helper wasn’t available.

 

screen1

Screenshot of criteria builder

 

 screen2 

The magnificent result-view

 

Some further things which could be added and would be make the gadget more editor friendly:

 

  • Using the Dynamic Data Store to save searches
  • Using Reflection (possibly?) to determine the valuetype automatically
  • Possibility to select where to start searching
  • Validation and friendly feedback for errors

 

 

 

 

 

Installation instructions (hope it works for you)

 

1. add this to web.config

<modules autoDiscovery="Minimal">
    <add name="FindPages">
        <assemblies>
            <add assembly="FindPages"/>
        </assemblies>
    </add>
</modules>

under the episerver.shell tag

2. unpack the zip file to your episerver ctp site, open and build the project

2. add gadget to the page

3. rule the world?

 

Source and project files Source and project files

Oct 27, 2009

Comments

Petter Klang
Petter Klang Sep 21, 2010 10:32 AM

Nice gadget, now lets all rule the world with EPiServer HAR!

Sep 21, 2010 10:32 AM

Cool idea

Please login to comment.
Latest blogs
Optimizely Unit Testing Using CmsContentScaffolding Package

Introduction Unit tests shouldn't be created just for business logic, but also for the content and rules defined for content creation (available...

MilosR | Apr 26, 2024

Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024

Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog

Azure AI Language – Abstractive Summarisation in Optimizely CMS

In this article, I show how the abstraction summarisation feature provided by the Azure AI Language platform, can be used within Optimizely CMS to...

Anil Patel | Apr 18, 2024 | Syndicated blog