PDA

View Full Version : Screen Conditionals for products and categories


Jasonscdsingles
04-03-06, 07:58 PM
Hello Miva Experts,

I have some code in between my Head Tags.

%begin_notscreen|SFNT%
<META NAME="description" CONTENT="%VAR(module|CBSMETA|PRODDESC)% %VAR(module|CBSMETA|CATDESC)% CD Singles">
<META NAME="keywords" CONTENT="%VAR(module|CBSMETA|PRODKEYWORDS)% %VAR(module|CBSMETA|CATKEYWORDS)% ,Cd Singles, maxi cd singles, remix">
<META NAME="URL" CONTENT="http://www.jasonscdsingles.com">
<META NAME="revisit-after" CONTENT="31 days">
%end_notscreen|SFNT%

This is working fantastic. However, I only want it to show up on my product and category pages. Is their another conditional I can use?

Vic - WolfPaw Computers
04-03-06, 08:07 PM
Hello Miva Experts,

I have some code in between my Head Tags.

%begin_notscreen|SFNT%
<META NAME="description" CONTENT="%VAR(module|CBSMETA|PRODDESC)% %VAR(module|CBSMETA|CATDESC)% CD Singles">
<META NAME="keywords" CONTENT="%VAR(module|CBSMETA|PRODKEYWORDS)% %VAR(module|CBSMETA|CATKEYWORDS)% ,Cd Singles, maxi cd singles, remix">
<META NAME="URL" CONTENT="http://www.jasonscdsingles.com">
<META NAME="revisit-after" CONTENT="31 days">
%end_notscreen|SFNT%

This is working fantastic. However, I only want it to show up on my product and category pages. Is their another conditional I can use?

Change it to this:

%IF(g.Screen EQ 'CTGY' OR g.Screen EQ 'PROD')%
<META NAME="description" CONTENT="%VAR(module|CBSMETA|PRODDESC)% %VAR(module|CBSMETA|CATDESC)% CD Singles">
<META NAME="keywords" CONTENT="%VAR(module|CBSMETA|PRODKEYWORDS)% %VAR(module|CBSMETA|CATKEYWORDS)% ,Cd Singles, maxi cd singles, remix">
<META NAME="URL" CONTENT="http://www.jasonscdsingles.com">
<META NAME="revisit-after" CONTENT="31 days">
%IFEND%

You should also move it to your Meta Tag edit box, rather than the head tag insert, to be more w3C compliant.

Jasonscdsingles
04-03-06, 08:31 PM
Thanks Vic :)