Gossamer Forum
Quote Reply
Variables
Probably an easy question. In what file are the variable definitions found?

Drew Selman
Earthnet Communications
http://www.i-cram.com
http://www.mcpzone.com
Quote Reply
Re: Variables In reply to
The module files in the GT folder...

But I would recommend first using the web-based admin options before venturing into the nuts and bolts of LINKS SQL...to ensure that you properly apply codes and also ensure that the script will be upgradable with future releases.

Regards,

Eliot Lee
Quote Reply
Re: Variables In reply to
What I am trying to do is modify the way the Title in the Subcategories are displayed.

ANy thoughts?

Drew Selman
Earthnet Communications
http://www.i-cram.com
http://www.mcpzone.com
Quote Reply
Re: Variables In reply to
Edit the subcategory.html template file. Specifics are helpful when addressing questions. Wink

Regards,

Eliot Lee
Quote Reply
Re: Variables In reply to
Hmm....I was talking actually about the HTML Tage <Title>.
Within the code, a page is entitled throught the code:

<html>
<head>
<title><%site_title%>: <%category_name%></title>
<%if meta_name%>
<meta name="description" content="<%meta_name%>">
<%endif%>
<%if meta_keywords%>
<meta name="keywords" content="<%meta_keywords%>">
<%endif%>
</head>

My question is twofold:

1) How do I modify the tag: <%category_name%> to use a space instead of a "/"; and
2) Where do I globally change the <%meta_name%> and <%meta_keyword%> tags without rerunning the startup script again?

Thanks

Drew Selman
Earthnet Communications
http://www.i-cram.com
http://www.mcpzone.com
Quote Reply
Re: Variables In reply to
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