public function assignSubmission() { // disable menu YRequest::setVar('hidemainmenu', 1); // init vars $type = YRequest::getString('type'); $this->template = YRequest::getString('template'); $this->layout = YRequest::getString('layout'); // get type $this->type = $this->application->getType($type); // set toolbar items $this->joomla->set('JComponentTitle', $this->application->getToolbarTitle(JText::_('Type') . ': ' . $this->type->name . ' <small><small>[ ' . JText::_('Assign Submittable elements') . ': ' . $this->layout . ' ]</small></small>')); JToolBarHelper::save('savesubmission'); JToolBarHelper::apply('applysubmission'); JToolBarHelper::cancel('types'); ZooHelper::toolbarHelp(); // for template, module, plugin if ($this->template) { $this->path = $this->application->getPath() . '/templates/' . $this->template; } // get renderer $renderer = new ItemRenderer(); $renderer->addPath($this->path); // get positions and config $this->config = $renderer->getConfig('item')->get($this->group . '.' . $type . '.' . $this->layout); $prefix = 'item.'; if ($renderer->pathExists('item' . DIRECTORY_SEPARATOR . $type)) { $prefix .= $type . '.'; } $this->positions = $renderer->getPositions($prefix . $this->layout); // display view $this->getView()->setLayout('assignsubmission')->display(); }