/**
  * Load category data to the template.
  *
  * @param ICategory $category
  */
 public function load(ICategory $category)
 {
     $this->template->set('title', $category->getTitle());
     $this->template->set('meta_title', $category->metaTitle());
     $this->template->set('meta_keywords', $category->metaKeywords());
     $this->template->set('meta_description', $category->metaDescription());
 }
 /**
  * Make the category response.
  *
  * @param ICategory $category
  */
 public function make(ICategory $category)
 {
     //$category->setResponse($this->response->view('admin.categorys.view', compact('category')));
     $category->setResponse($this->response->view(\OogleeBConfig::get('config.category_view.view'), compact('category')));
 }
 /**
  * Find many posts by category.
  *
  * @param ICategory $category
  * @param null  $limit
  * @return EntryCollection
  */
 public function findManyByCategory(ICategory $category, $limit = null)
 {
     $related = $this->modelClassInstance->active()->where('category_id', $category->getId())->paginate($limit);
     return $related;
 }
 /**
  * Make the view content.
  *
  * @param ICategory $category
  */
 public function make(ICategory $category)
 {
     //$category->setContent($this->view->make($category->getLayoutViewPath(), compact('category'))->render());
     $category->setContent($this->view->make(\OogleeBConfig::get('config.category_view.view'), compact('category'))->render());
 }
 /**
  * Return the view link.
  *
  * @return string
  */
 public function viewLink()
 {
     return \Html::link($this->entity->path(), $this->entity->getTitle(), ['target' => '_blank']);
 }