Barrett
06-26-08, 03:09 PM
What would it take to get the browser user agent value and be able to use it in a conditional in template like a Cat or Prod page ?
Example:
<mvt:item name="html_profile" />
<html>
<head>
<title>&mvt:category:name;</title>
<base href="&mvt:global:basehref;">
<mvt:item name="prodctgy_meta" param="ctgy" />
<mvt:item name="head" param="head_tag" />
</head>
<mvt:item name="body">
<div id="global_header"><mvt:item name="hdft" param="global_header" /></div>
<div id="header"><mvt:item name="hdft" param="header" /></div>
<div id="navbar"><mvt:item name="navbar" /></div>
<mvt:if [Internet Explore 6]>
process and display all this template code
<mvt:if [Internet Explore 7]>
process and display all this template code
ELSE
process and display all this template code
that works properly in every other decent browser llike FireFox 3 and Safari 3
</mvt:if>
Example:
<mvt:item name="html_profile" />
<html>
<head>
<title>&mvt:category:name;</title>
<base href="&mvt:global:basehref;">
<mvt:item name="prodctgy_meta" param="ctgy" />
<mvt:item name="head" param="head_tag" />
</head>
<mvt:item name="body">
<div id="global_header"><mvt:item name="hdft" param="global_header" /></div>
<div id="header"><mvt:item name="hdft" param="header" /></div>
<div id="navbar"><mvt:item name="navbar" /></div>
<mvt:if [Internet Explore 6]>
process and display all this template code
<mvt:if [Internet Explore 7]>
process and display all this template code
ELSE
process and display all this template code
that works properly in every other decent browser llike FireFox 3 and Safari 3
</mvt:if>