getRestAlias(); if (null !== $idCategory) { Qs_Http::redirect(BASE_URL . '/' . CURRENT_PAGE_FINAL . '#tabs-' . $idCategory); } parent::_callAction(); } public function fillConfigForm(Qs_Form $form) { $form->addElement( 'text', 'ipp', array( 'label' => 'Paginator: Items Per Page', 'description' => 'Use empty value or "0" to show all items on one page' ) ); return $this; } protected function _doList() { $ipp = $this->getConfig('ipp'); if (empty($ipp)) { $this->_listOptions['isDisabledLimit'] = true; } else { $this->_listOptions['defaultIpp'] = $ipp; } $this->doc->addScript('js/jquery-ui.js'); $this->doc->addScript('js/app/faq.js'); $this->doc->addInitFunction('App_Faq.init', array()); $this->doc->addStyleSheet('css/jquery-ui.css'); parent::_doList(); } protected function _addListItem($list = null, $template = 'list.tpl') { if (null === $list) { $list = $this->list; } $list->categories = (array)$this->dataObj->getNotEmptyCategories(); $list->category = $this->_category; if ($list->category['id'] == 0) { $list->category['id'] = ''; } parent::_addListItem($list, $template); } }