public function generateUrl(NewsCategoryModel $category, PageModel $page, $absolute = false)
    {
        $page->loadDetails();

        $params = '/'.$this->getParameterName($page->rootId).'/'.$this->getCategoryAlias($category, $page);

        return $absolute ? $page->getAbsoluteUrl($params) : $page->getFrontendUrl($params);
    }
public function generateUrl(NewsCategoryModel $category, PageModel $page, $absolute = false)
    {
        $page->loadDetails();

        $params = '/'.$this->getParameterName($page->rootId).'/'.$this->getCategoryAlias($category, $page);

        return $absolute ? $page->getAbsoluteUrl($params) : $page->getFrontendUrl($params);
    }
public function generateUrl ( NewsCategoryModel $ category , PageModel $ page , $ absolute = false ) { $ page -> loadDetails ( ) ; $ params = '/' . $ this -> getParameterName ( $ page -> rootId ) . '/' . $ this -> getCategoryAlias ( $ category , $ page ) ; return $ absolute ? $ page -> getAbsoluteUrl ( $ params ) : $ page -> getFrontendUrl ( $ params ) ; }
Generate the category URL.

@param NewsCategoryModel $category
@param PageModel         $page
@param bool              $absolute

@return string
Generate the category URL .