public override void Transform(Engine engine, Package package) { this.Initialize(engine, package); //Initialize field processor from package variables FieldProcessor processor = new FieldProcessor(); processor.Initialize(package); SearchData data = new SearchData(processor); if (this.IsPageTemplate) { UpdateFlaggedDcps(data.ProcessPage(this.GetPage())); } else { data.ProcessComponentPresentation(new Tridion.ContentManager.CommunicationManagement.ComponentPresentation(this.GetComponent(), this.GetComponentTemplate()),GetFlaggedDcps()); } SerializeAndPushToPackage(data); }
public override void Transform(Engine engine, Package package) { this.Initialize(engine, package); //Initialize field processor from package variables FieldProcessor processor = new FieldProcessor(); processor.Initialize(package); SearchData data = new SearchData(processor); if (this.IsPageTemplate) { UpdateFlaggedDcps(data.ProcessPage(this.GetPage())); } else { data.ProcessComponentPresentation(new Tridion.ContentManager.CommunicationManagement.ComponentPresentation(this.GetComponent(), this.GetComponentTemplate()), GetFlaggedDcps()); } SerializeAndPushToPackage(data); }