News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

xhtml validation fails in mod_virtuemart

Started by patrik60, January 15, 2009, 17:53:04 PM

Previous topic - Next topic

patrik60

When I'm validating my site I get the following error:
document type does not allow element "link" here:
href="http://www.mydomain.com/modules/mod_virtuemart/vm_transmenu/transmenuv.css

this happens with all variants (dtree, tigratree, JSCook, Transmenu). It seems that the href is placed at the wrong place:

<link rel="stylesheet" type="text/css" href="',$this->parent->_params->get('LSPath'),'/',$cssfile,'" /> at line 15 e.g. in transmenu.php.

Patrik

finderlite

Hello.
I had the same problem. I have decided. You must select one of the options, for example dtree. And in the file vm_dtree.php deadline for comment:
//*** $ Menu_htmlcode .= "<link rel=\"stylesheet\" href=\"$js_src/dtree/dtree.css\" type=\"text/css\" /> \ n";

To css module connected, you need to insert it in the call /template/xxxxx/index.php

For example my /template/billiardhouse/index.php (last line):

<! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml" xml: lang = "<? php echo $ this-> language;?>" lang = "<? php echo $ this-> language; >>
<head>
<jdoc:include type="head" />
<link rel = "stylesheet" href = "<? php echo $ this-> baseurl?> / templates / system / css / system.css" type = "text / css" />
<link rel = "stylesheet" href = "<? php echo $ this-> baseurl?> / templates / system / css / general.css" type = "text / css" />
<link rel="stylesheet" href="/templates/billiardhouse/css/cms.css" type="text/css" />
<link rel="stylesheet" href="/templates/billiardhouse/css/template.css" type="text/css"
/>
<link rel="stylesheet" href="/modules/mod_virtuemart/dtree/dtree.css" type="text/css" />

patrik60