Contents |
canonicalUrlTag() returns a string containing the HTML link tag for the selected canonical url for the page. If no url map is selected as the canonical url, the first url map entered for the page will be used. If no url maps are set for the page, than the system link (index.php?pageId=#) will be used.
$canonicalUrlTag = eV::canonicalUrlTag($pageId[,$overrideUrl]);
String containing the HTML link tag for the canonical URL: <link rel="canonical" href="/my-canonical-url-here" />
echo "<html> <head> <title>$title</title>"; echo eV::canonicalUrlTag($pageId); echo "</head> <body> $copy </body> </html>";