1) The CATEGORY NAME is printed without slashes in CATEGORY pages...
2) Uh..those aren't global variables...those FIELDS (tags) are defined in each CATEGORY record. If you want to print GENERAL META tags if there are NO META tag information given for each category, then you will need to edit those codes in the
category.html template file:
Code:
<%if meta_name%>
<meta name="description" content="<%meta_name%>">
<%endif%>
<%ifnot meta_name%>
<meta name="description" content="My description">
<%endif%>
<%if meta_keywords%>
<meta name="keywords" content="<%meta_keywords%>">
<%endif%>
<%ifnot meta_keywords%>
<meta name="keywords" content="keyword1,keyword2,keyword3">
<%endif%> OR you could add your own GLOBAL META tags and call them something like:
Code:
meta_gen_keywords
meta_gen_description (To create these GLOBAL tags, please search this forum for
Global Tags.
Then replace the above codes I gave with the following codes:
Code:
<%if meta_name%>
<meta name="description" content="<%meta_name%>">
<%endif%>
<%ifnot meta_name%>
<meta name="description" content="<%meta_gen_description%>">
<%endif%>
<%if meta_keywords%>
<meta name="keywords" content="<%meta_keywords%>">
<%endif%>
<%ifnot meta_keywords%>
<meta name="keywords" content="<%meta_gen_keywords%>">
<%endif%> in the
category.html template file.
Then in the rest of your TEMPLATE files, add the following codes:
Code:
<meta name="description" content="<%meta_gen_description%>">
<meta name="keywords" content="<%meta_gen_keywords%>"> Of course, these codes can also go in your
header.txt file.
Regards,
Eliot Lee