Adds the initial classes needed for the new search feature. Adds the empty view for the search feature. #952
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user