Adds the initial classes needed for the new search feature. Adds the empty view for the search feature. #952

This commit is contained in:
2022-09-14 17:40:02 +02:00
parent 1dddba0fc8
commit d757e14fac
57 changed files with 6293 additions and 177 deletions

View File

@ -324,17 +324,13 @@ class Infusion extends Interpretation
= $this->addEmailHelper();
// load the global placeholders
if (ArrayHelper::check($this->globalPlaceholders))
foreach (CFactory::_('Component.Placeholder')->get() as $globalPlaceholder =>
$gloabalValue
)
{
foreach (
$this->globalPlaceholders as $globalPlaceholder =>
$gloabalValue
)
{
$this->fileContentStatic[$globalPlaceholder]
= $gloabalValue;
}
$this->fileContentStatic[$globalPlaceholder] = $gloabalValue;
}
// reset view array
$viewarray = array();
$site_edit_view_array = array();
@ -1169,6 +1165,10 @@ class Infusion extends Interpretation
CFactory::_('Placeholder')->active = $this->placeholders;
}
// all fields stored in database
$this->fileContentStatic[Placefix::_h('ARRAY_ALL_SEARCH_FIELDS')] =
CFactory::_('Registry')->varExport('all_search_fields', 1);
// setup the layouts
$this->setCustomViewLayouts();