HTML Meta Tags on Static Pages

Creating and modifying plugins.
Post Reply
lokiwolf
Regular
Posts: 10
Joined: Mon Sep 15, 2008 5:10 am

HTML Meta Tags on Static Pages

Post by lokiwolf »

Is there a way to input keywords for static pages, the way you do for entry pages? I don't want my static pages to all use the same default keywords, I would like to custom enter them for each static page. Is there a way to make the plugin do this? Thanks!

Also, is there a way to disable the other parts of the plugin, such as the description and title? I already have these dynamically coded into my index file, and I don't want the plugin adding extra meta tags in the headers. Only the keywords one.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: HTML Meta Tags on Static Pages

Post by garvinhicking »

Hi!

Currently there is no builtin way for this. But sinec recently, the staticpage plugin can have custom templates so that you can enter any custom fields you like. But you must insert them into a smarty template, and need to fetch the key inside your master index.tpl template file, so you need some basic Smarty knowledge to get this to work.

See this posting for example: http://blog.s9y.org/archives/199-Improv ... lugin.html

With this way you can also finetune any field of the staticpage plugin.

HTH,
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/
lokiwolf
Regular
Posts: 10
Joined: Mon Sep 15, 2008 5:10 am

re: static pages

Post by lokiwolf »

Ok, thanks.. I'll fiddle around with it. I don't know smarty stuff that well, but I can read the code and figure out pretty much what something does and copy it if I have to... Thanks for the ideas... I guess I really don't need keywords, for the major search engines, but some of the smaller ones still use em I guess. I was looking because I keep getting an error from some site checkers that I have no keywords meta tag... but on further reading, I probably can ignore that, huh?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: re: static pages

Post by garvinhicking »

Hi!

Keywords are still a nice benefit, but they're not really mandatory. It's up to you to see if it's worth the effort *g*

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