Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-03 19:00:15

zeusdidit
Member
Registered: 2007-10-16
Posts: 111

Can I use custom fields for adding specific meta keywords to articles?

Can I use custom fields for adding specific meta keywords to articles or is there a better way to do this?

Thanks in advance,
Zeus

Offline

#2 2007-12-03 19:18:15

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Can I use custom fields for adding specific meta keywords to articles?

<txp:if_individual_article><meta name="keywords" content="<txp:custom_field name="article-keywords" />" /></txp:if_individual_article>

Or

<txp:if_individual_article><meta name="keywords" content="<txp:keywords" />" /></txp:if_individual_article>

You could also use plugins that give more options and so-on, like rah_metas

Cheers!

Offline

#3 2007-12-04 22:04:59

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Can I use custom fields for adding specific meta keywords to articles?

Offline

#4 2007-12-04 22:25:40

zeusdidit
Member
Registered: 2007-10-16
Posts: 111

Re: Can I use custom fields for adding specific meta keywords to articles?

Hey guys, wanted to say thanks, and I went with a hybrid version and actually I’ve added the meta “Abstract” which helps SEO. TXP Rocks!
By hybrid I mean that I’ve added the if_individual along with an else statement to keep my sections with keywords too.

Thanks again.

Last edited by zeusdidit (2007-12-04 22:26:56)

Offline

#5 2007-12-04 23:01:50

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Can I use custom fields for adding specific meta keywords to articles?

rah_metas is a great plug-in for managing metadata for SEO purposes.

Hey, Gocom, if you read this, don’t forget the feature to choose a custom field for the meta description (in place of excerpt, although if the custom field is empty, the excerpt is used).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#6 2007-12-04 23:20:48

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Can I use custom fields for adding specific meta keywords to articles?

Hey, Gocom, if you read this, don’t forget the feature to choose a custom field for the meta description (in place of excerpt, although if the custom field is empty, the excerpt is used).

Oh, yes that function. Well, I could add it tonight :P

Cheers!

Offline

#7 2007-12-05 01:14:27

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Can I use custom fields for adding specific meta keywords to articles?

maniqui wrote:

rah_metas is a great plug-in for managing metadata for SEO purposes.

Hey, Gocom, if you read this, don’t forget the feature to choose a custom field for the meta description (in place of excerpt, although if the custom field is empty, the excerpt is used).

Now it’s ready. Updated rah_metas to version 0.9.

Includes new attributes:

  • copyright
  • useauthor
  • customfieldkeywords
  • customfieldexcerpt

Documention and download

Cheers!

Last edited by Gocom (2007-12-05 01:15:25)

Offline

#8 2007-12-05 15:02:09

zeusdidit
Member
Registered: 2007-10-16
Posts: 111

Re: Can I use custom fields for adding specific meta keywords to articles?

Hey cool! Thanks Gocom, I’ll implement it sometime tonight and let you know how I like it. The only thing of the top of my head that I’d be concerned with is that I have different page templates, but I’ll see if it works because I doubt I’m the only one with that type of TXP set up.

Thanks again!

Offline

Board footer

Powered by FluxBB