VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: patrik60 on January 15, 2009, 17:53:04 PM

Title: xhtml validation fails in mod_virtuemart
Post by: patrik60 on January 15, 2009, 17:53:04 PM
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
Title: Re: xhtml validation fails in mod_virtuemart
Post by: finderlite on February 08, 2009, 03:11:34 AM
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" />
Title: Re: xhtml validation fails in mod_virtuemart
Post by: patrik60 on February 08, 2009, 03:46:59 AM
Thank you, this did help!

patrik