Hi!
I´ve dowloaded the Search & replace code sample you can find in developer forum/code samples/productivity. Does anyone know how to make it work when searching dynamic properties aswell?
This is the downloadable code:
PageReference startPage = Global.EPConfig.RootPage;
criteria = new EPiServer.PropertyCriteria();
criteria.Type = PropertyDataType.LongString;
criteria.Name = propertyName;
criteria.Value = searchText;
criteria.StringCondition = EPiServer.Filters.StringCompareMethod.Contained;
criterias.Add(criteria);
matchingPages = Global.EPDataFactory.FindPagesWithCriteria(startPage, criterias);
Thanks!
/Lotta
PageReference startPage = Global.EPConfig.RootPage; criteria = new EPiServer.PropertyCriteria(); criteria.Type = PropertyDataType.LongString; criteria.Name = propertyName; criteria.Value = searchText; criteria.StringCondition = EPiServer.Filters.StringCompareMethod.Contained; criterias.Add(criteria); matchingPages = Global.EPDataFactory.FindPagesWithCriteria(startPage, criterias);
Thanks! /Lotta