Keywords Modification

Discussion corner for Developers of Serendipity.
Post Reply
ChrisBianchi
Posts: 3
Joined: Wed Feb 09, 2005 6:46 pm
Location: Columbus, Ohio
Contact:

Keywords Modification

Post by ChrisBianchi »

Users and Developers:

Open your /serendipity_genpage.inc.php file and add the following line inside the <head> section:
<meta name="keywords" content="<?php include('keywords.txt'); ?>">
This will allow you to make a file called keywords.txt and place it inside your Serendipity root directory. This plain-text file can contain your comma-separated meta keywords for particular search engines such as Overture and others.

Just thought you'd like the suggestion :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Keywords Modification

Post by garvinhicking »

Please do not follow this advice. :-)

It is much better to create a plugin for this. You can already use the 'serendipity_event_head_nugget' plugin from our CVS additional_plugins repository. This allows you to insert the keywords via textare input box.

If you modify serendipity_genpage, you would need to modify that file on each Serendipity upgrade. If you use the plugin approach, you do not ever need to touch files again. Apart from that, Serendipity 0.8 does no longer user serendipity_genpage.inc.php but Smarty HTML templates, so this will not work in the version wich will be released in a few weeks.

Neverthells, thanks for looking into Serendipity and trying to help! We much appreciate this!

Best regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply