You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a standard page, add some content into $Content, save and publish. Content is indexed into Elastic - this is fine.
Change the page type to RedirectorPage. Content is now hidden in the CMS (as the Content field is hidden) but content is not removed from Elastic as it still exists on SiteTree.
This only happens with the $Content field if it's indexed, because that field is on SiteTree, not a sub-class that gets changed.
It's probably enough to treat this as a special case, rather than doing anything more complicated, and just block the indexing of the Content field if the source_class is RedirectorPage.
The text was updated successfully, but these errors were encountered:
madmatt
changed the title
Content from redirector pages appears but isn't editable in the CMS
Content from redirector pages appears in search results but isn't editable in the CMS
Jan 20, 2022
Worth noting this would also affect any fields on the pages where the page type is changed between two pages that have slightly different hierarchy but a common ancestor.
For example, if you have SiteTree -> Page -> LandingPage and SiteTree -> Page -> OtherPage and on OtherPage you hide a bunch of fields from eitherSiteTree or Page, then those fields may still end up being indexed. I don't know of a good way around that beyond forcing users to decide for every single page type what fields should be indexed.
Scenario:
Content
field is hidden) but content is not removed from Elastic as it still exists onSiteTree
.This only happens with the
$Content
field if it's indexed, because that field is onSiteTree
, not a sub-class that gets changed.It's probably enough to treat this as a special case, rather than doing anything more complicated, and just block the indexing of the Content field if the
source_class
isRedirectorPage
.The text was updated successfully, but these errors were encountered: