PageProvider and FindPagesWithCriteria not working

Vote:
 

Hi,

I have developed a PageProvider and now I'm trying to implement FindPagesWithCriteria/search.

When I'm calling FindPagesWithCriteria from a template the FindPagesWithCriteria method in my provider is never called!

I've added the search capability in the PageProviderCapabilities property.

 

My guess is that FindPagesWithCriteria is only calling the corresponding method in the provider which the search was started in. So if you start searching from the LocalPageProvider it only search in that provider even if there is another provider registered below that starting point.

Is this a bug or by-design? Or am I doing something wrong here?

#57181
Mar 01, 2012 10:08
Vote:
 

This was a RTFM...

http://world.episerver.com/Documentation/Items/Tech-Notes/EPiServer-CMS-6/EPiServer-CMS-60/Page-Providers/

You need to ad a property to search over all providers

PropertyCriteriaCollection criterias = new PropertyCriteriaCollection()
            {
                new PropertyCriteria
                {
                    Name = "PageTypeID",
                    Type = PropertyDataType.PageType,
                    Condition = CompareCondition.Equal,
                    Value = Settings.Instance.BlogPostPageTypeID.ToString(),
                    Required = true
                },
                new PropertyCriteria
                {
                    Name = "EPI:MultipleSearch",
                    Value = "*"
                }
            };

    

#57210
Mar 02, 2012 10:07
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.