Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Question regarding code in Category.html file

Quote Reply
Question regarding code in Category.html file
Hi all,

There is the following code in the category.html file in the templates directory:

<%if meta_name%>
<meta name="description" content="<%meta_name%>">
<%endif%>
<if meta_keywords%>
<meta name="keywords" content="<%meta_keywords%>">
<%endif%>


I want to know, where do I enter the values for the variables "meta_name%" and "meta_keywords%"
so that when I udpate the database, the pages generated would automatically have the META tags?

Any tips would be greatly appreciate. Thanks in advance!
Quote Reply
Re: [svr] Question regarding code in Category.html file In reply to
By editing the records in the Category database file (categories.db). Wink

Use admin.cgi (Categories => Modify)

Bye.


========================================
Buh Bye!

Cheers,
Me

Last edited by:

AnthroRules: Oct 16, 2001, 10:10 AM
Quote Reply
Re: [AnthroRules] Question regarding code in Category.html file In reply to
Hmm, that is weird. I have a slight problem that I see with the category.html file after I build (without even adding meta variable values).

This line shows up in all the category main html files:

<if meta_keywords%>

This line shows up right after </title>

Is this a bug?

Also is there any way I can expand the number of characters typed in the META keywords text box?

Thanks again
Quote Reply
Re: [svr] Question regarding code in Category.html file In reply to
 
I think the "if" word should be preceded by a % character ... is that right?

The original distribution files have the following lines in the "category.html" file:

============
<%if meta_name%>
<meta name="description" content="<%meta_name%>">
<%endif%>
<if meta_keywords%>
<meta name="keywords" content="<%meta_keywords%>">
<%endif%>

==========
Quote Reply
Re: [svr] Question regarding code in Category.html file In reply to
Yes it is a bug.

<if meta_keywords%>

...note the missing %

Last edited by:

RedRum: Oct 16, 2001, 2:26 PM
Quote Reply
Re: [RedRum] Question regarding code in Category.html file In reply to
 
Hi again, is there any way to increase the META keywords text box in the admin/mod. category window to a larger value? This is weird that the program does not allow more keywords. Standard web standards allow a certain number of chars (I forget now how many) that is way more than what is allowed in Links.


Quote Reply
Re: [svr] Question regarding code in Category.html file In reply to
Sure, in category.def simply replace the value "75" with any number you wish.

Code:
'Meta Keywords' => [5, 'alpha', 40, 75, 0, '', ''],
Quote Reply
Re: [Tho.mas] Question regarding code in Category.html file In reply to
 
Thanks but isn't there a SIZE value that needs to be changed too?
Quote Reply
Re: [svr] Question regarding code in Category.html file In reply to
You don't need to change the size value, of course you could if you wish: it's the value before the number of chars.
Quote Reply
Re: [Tho.mas] Question regarding code in Category.html file In reply to
 
Thanks for your reply.

Wouldn't I *have* to change the SIZE variable? I thought SIZE variable controlled the size of the text box, hence the number of characters one could type into that box (as long as it is < 75) ??
Quote Reply
Re: [svr] Question regarding code in Category.html file In reply to
Size of the text box means literal size not the numer of characters allowed in it.