references:joomla.framework:document:jdocumenthtml-addheadlinkTable of Contents
addHeadLink
Adds <link> tags to the head of the document. $relType defaults to ‘rel’ as it is the most common relation type used. ‘rev’ refers to reverse relation. ‘rel’ indicates normal, forward relation. Typical tag: <link href=”index.php” rel=”Start”>. Syntaxvoid addHeadLink ( $href, $relation, $relType, $attribs, $attributes )
ExamplesAdd a head link to the page. Example global $mainframe; $document =& JFactory::getDocument(); $document->addHeadLink( "http://www.gnu.org/copyleft/fdl.html", 'copyright', 'rel', array( 'charset' => 'UTF-8' ) ); adds the following code to the head block: Result <link href="http://www.gnu.org/copyleft/fdl.html" rel="copyright" charset="UTF-8" /> |


