Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/categories/categories_event_handler.php
Show First 20 Lines • Show All 2179 Lines • ▼ Show 20 Line(s) | |||||
$root_category = $this->Application->getBaseCategory(); | $root_category = $this->Application->getBaseCategory(); | ||||
// set root category | // set root category | ||||
$section_adjustments = $this->Application->getUnitOption($event->Prefix, 'SectionAdjustments'); | $section_adjustments = $this->Application->getUnitOption($event->Prefix, 'SectionAdjustments'); | ||||
$section_adjustments['in-portal:browse'] = Array ( | $section_adjustments['in-portal:browse'] = Array ( | ||||
'url' => Array ('m_cat_id' => $root_category), | 'url' => Array ('m_cat_id' => $root_category), | ||||
'late_load' => Array ('m_cat_id' => $root_category), | 'late_load' => Array ('m_cat_id' => $root_category), | ||||
'onclick' => 'checkCatalog(' . $root_category . ')', | 'onclick' => 'checkCatalog(' . $root_category . ', "c")', | ||||
); | ); | ||||
if ( $this->Application->ConfigValue('Catalog_PreselectModuleTab') ) { | |||||
$section_adjustments['in-portal:browse']['url']['anchor'] = 'tab-c'; | |||||
} | |||||
$section_adjustments['in-portal:browse_site'] = Array ( | $section_adjustments['in-portal:browse_site'] = Array ( | ||||
'url' => Array ('editing_mode' => $settings['default_editing_mode']), | 'url' => Array ('editing_mode' => $settings['default_editing_mode']), | ||||
); | ); | ||||
$this->Application->setUnitOption($event->Prefix, 'SectionAdjustments', $section_adjustments); | $this->Application->setUnitOption($event->Prefix, 'SectionAdjustments', $section_adjustments); | ||||
// prepare structure dropdown | // prepare structure dropdown | ||||
$category_helper = $this->Application->recallObject('CategoryHelper'); | $category_helper = $this->Application->recallObject('CategoryHelper'); | ||||
▲ Show 20 Lines • Show All 946 Lines • Show Last 20 Lines |