Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Unpublished pages being Indexed

$
0
0

Hi,

How do you prevent pages from being Indexed that haven’t been published?

I have created a page and it instantly Indexes in FIND even though the page isn’t published – this is EPiServer 7.5.

 

I have added this to my Application_Start

 

            ContentIndexer.Instance.Conventions.ForInstancesOf<PageData>().ShouldIndex(x => x.Status == VersionStatus.Published);

            ContentIndexer.Instance.Invisible = false;

 

And it still publishes the page.

 

Any ideas?

 

Jon


Viewing all articles
Browse latest Browse all 8020

Trending Articles