Exemplo n.º 1
0
 protected function _prepareDocument()
 {
     $uri = clone JUri::getInstance();
     $domain = $uri->toString(array('scheme', 'host', 'port'));
     $canonicalLink = $domain . JRoute::_(JUDirectoryHelperRoute::getCategoriesRoute($this->category->id, true, $this->_layout), false);
     JUDirectoryFrontHelper::setCanonical($canonicalLink);
     $seoData = array("metatitle" => JText::_('COM_JUDIRECTORY_SEO_TITLE_CATEGORIES'), "metadescription" => "", "metakeyword" => "");
     JUDirectoryFrontHelperSeo::seo($this, $seoData);
 }