code: public function getCurrentCategory() {
  		$category = $this->request->param("Category");
  		if($category) {
  			return $this->dataRecord->Categories()
  				->filter("URLSegment", $category)
  				->first();
  		}
  		return null;
  	}
docs: Category Getter for use in templates.
  
  @return BlogCategory|null