Open xf- opened 2 years ago
Is there any documented way to avoid flex objects from being indexed?
My patch at the moment is
/** @var Page $page */ foreach ($pages->all() as $page) { if (preg_match("/^[0-9a-f]{32}/", $page->folder())) { $page->header(['sitemap' => ['ignore' => true]]); } }
But that is very ugly, I saw no attribute on the page that says flex object or property in the blueprint to remove the indexing.
Is there any documented way to avoid flex objects from being indexed?
My patch at the moment is
But that is very ugly, I saw no attribute on the page that says flex object or property in the blueprint to remove the indexing.