HTML Meta Tags plugin - extend to static pages?

Creating and modifying plugins.
Post Reply
User avatar
Don Chambers
Regular
Posts: 3638
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

HTML Meta Tags plugin - extend to static pages?

Post by Don Chambers » Wed Feb 25, 2009 4:14 pm

With the help of Garvin and Judebert, I fumbled my way through some minor changes to this plugin about a year and a half ago. I was able to add a few things to it because it already had existing fields.

The plugin provides additional fields when creating/editing an entry. The additional info allows an entry to specify a page-specific <title> element, as well as <meta description> and <meta keywords>. The plugin can also attempt to automatically generate <meta keywords> by searching for specified tags (ie, bold, strong, etc) within entry body. It also provides a site-wide default for the <meta> elements if not specified for a particular page (index.tpl already provides the default for <title>. This info is emitted via index.tpl via {serendipity_hookPlugin hook="frontend_header"}.

All of this is very entry-specific. Is it possible to extend this entire functionality to static pages? I think doing so is very important, and provides even greater functionality to s9y as a cms when using static pages.... problem is, doing so is WAY over my head.

HELP!!

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: HTML Meta Tags plugin - extend to static pages?

Post by garvinhicking » Thu Feb 26, 2009 10:24 am

Hi!

I believe what could be done is to add custom staticpage fields into a template for easy HTML metatag integration.

Using the Meta tags plugins for staticpages would mean a fundamental change into how both plugins work, because meta-tags are stored depending on entryproperties, which cannot be applied to static pages.

I think it can be done, but I personally currently have no free time available for this kind of thing. I always support when s9y is being bent into CMS-directions, but very advanced stuff is IMHO still something that should be done either by PHP developers who can bend the Smarty/PHP-Plugins, or maybe with a different system.

If someone wants a paid implementation of this for a commercial project though, I'd be happy to help. I hope you can understand this, as my free time is really limited and currently virtually all used up by forum support here.

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/

User avatar
Don Chambers
Regular
Posts: 3638
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: HTML Meta Tags plugin - extend to static pages?

Post by Don Chambers » Thu Feb 26, 2009 3:08 pm

Garvin - this was more of an experiment of my own. Lets not all suddenly assume that everything I do is commercial!! :lol:

I am currently doing it with custom properties/fields for static pages... it just occurred to me that it might be more consistent from a user perspective if the method of defining <meta> info or staticpage-specific <title> elements was consistent.

WMK
Regular
Posts: 32
Joined: Mon Jun 22, 2009 11:14 am
Contact:

Re: HTML Meta Tags plugin - extend to static pages?

Post by WMK » Thu Jul 09, 2009 11:09 pm

Hi,

any progress in this issue?

I'd love to have meta tags for static pages, too. Maybe i can help some day in developing - if i'm not the only developer on this as i'm just starting digging into s9y.

cheers,

Werner
Viele Grüße,

Werner

User avatar
Don Chambers
Regular
Posts: 3638
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: HTML Meta Tags plugin - extend to static pages?

Post by Don Chambers » Fri Jul 10, 2009 12:31 am

I did it with custom static page properties/fields for one particular custom template I created. It works well enough that I never really felt compelled to look at it any differently. Let me know if you want to approach it the same way and perhaps I can share a tip or two (or even the entire thing).

mbb
Regular
Posts: 60
Joined: Sun Jul 22, 2007 3:06 pm

Re: HTML Meta Tags plugin - extend to static pages?

Post by mbb » Fri Jul 10, 2009 10:25 am

i definately need a "serendipity_event_metadesc"-plugin for static pages.

User avatar
Don Chambers
Regular
Posts: 3638
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: HTML Meta Tags plugin - extend to static pages?

Post by Don Chambers » Sat Jul 11, 2009 1:03 am

I wrote a quick blog entry on how to use custom static page properties to emit meta info here.

mbb
Regular
Posts: 60
Joined: Sun Jul 22, 2007 3:06 pm

Re: HTML Meta Tags plugin - extend to static pages?

Post by mbb » Thu Jun 03, 2010 12:43 pm

i would prefer a meta-tag-plugin for static pages ...

Post Reply