Exemplo n.º 1
0
 public function getMetadata($id)
 {
     $db =& JFactory::getDBO();
     $sql = "SELECT c.id as id, c.title as title, c.metakey as metakeywords,\n         c.metadesc as metadescription \n         FROM \n        #__content c\n        WHERE c.id=" . $db->quote($id);
     $db->setQuery($sql);
     $metadata = $db->loadAssoc();
     $sb_metadata = parent::getMetadata($id);
     $metadata["metatitle"] = $sb_metadata["metatitle"];
     return $metadata;
 }
Exemplo n.º 2
0
 public function getMetadata($id)
 {
     $db =& JFactory::getDBO();
     $sql = "SELECT c.id as id, c.t_name as title,\n         FROM \n        #__bl_teams c\n        WHERE c.id=" . $db->quote($id);
     $db->setQuery($sql);
     $data = $db->loadAssoc();
     $parentData = parent::getMetadata($id);
     $data["title_tag"] = $parentData["title_tag"];
     $data["metatitle"] = $parentData["metatitle"];
     $data["metakeywords"] = $parentData["metakeywords"];
     $data["metadescription"] = $parentData["metadescription"];
     return $data;
 }