示例#1
0
		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);
		}
示例#2
0
        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);
        }