Add "type" to Document->links
Posted: Sun Apr 08, 2012 12:12 am
I find that for each store I have to edit the class Document addLink() so that it supports "type" for RSS feed URLs. By the moment by default opencart only support href and rel.
E.g:
E.g:
Code: Select all
<link href="url" rel="alternate" type="application/rss+xml" />
Code: Select all
public function addLink($href, $rel, $type = 'text/css') {
$this->links[md5($href)] = array(
'href' => $href,
'rel' => $rel,
'type' => $type
);
}