Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello, i have ContentFinderResolver with more resolvers and i need to ensure, that some order of elavuation is kept.
At start i wrote this:
ContentFinderResolver.Current.InsertTypeBefore<ContentFinderByNotFoundHandlers, CatalogDetailContentFinder>(); ContentFinderResolver.Current.InsertTypeBefore<ContentFinderByNotFoundHandlers, SearchContentFinder>();
But i need to evaluate SearchContentFinder before CatalogDetailContentFinder. So i made this:
ContentFinderResolver.Current.InsertTypeBefore<ContentFinderByNotFoundHandlers, CatalogDetailContentFinder>(); ContentFinderResolver.Current.InsertTypeBefore<CatalogDetailContentFinder, SearchContentFinder>();
Should it work? I did not find much documentation around this. Thank you for advices
Hello,
You could simply find out by debugging, but I think the above code looks good. This way SearchContentFinder should go before CatalogDetailContentFinder.
Jeroen
Yep, you right. Debugging went well and other error confused me. So this piece is working. Thank you.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
ContentFinder - IContentFinder order of evaluation
Hello, i have ContentFinderResolver with more resolvers and i need to ensure, that some order of elavuation is kept.
At start i wrote this:
But i need to evaluate SearchContentFinder before CatalogDetailContentFinder. So i made this:
Should it work? I did not find much documentation around this. Thank you for advices
Hello,
You could simply find out by debugging, but I think the above code looks good. This way SearchContentFinder should go before CatalogDetailContentFinder.
Jeroen
Yep, you right. Debugging went well and other error confused me. So this piece is working. Thank you.
is working on a reply...