You are here

Pet meta tags every page

Pet meta tags every page adds meta tags to every page. Sometimes you just want to add the same meta tag to every page. This Drupal add-on module does exactly that and no more.

The example for this module is a Drupal site using a theme that does not set the default style sheet language. When you want CSS as the default and the theme does not do anything, you want the following line inserted in the head element of your HTML.
<meta http-equiv="Content-Style-Type" content="text/css" />

The module creates a table named pet_meta_tags_every_page. You can edit the table using PHPMyAdmin and insert any combination you like. The type and the name form the unique identifier which means you can only have one of each type-name combination. Content contains the text to go into the content attribute of the meta tag. Settings can contain an array of name value pairs serialised. I suggest you do not attempt to use the settings column unless you are an expert.

The example for CSS would be stored as type = http-equiv, name = Content-Style-Type, and content = text/css.

One day the module might have a user interface to store data without using PHPMyAdmin or equivalent. The user interface could then serialise the settings. perhaps someone will take over the module, reformat it to the funny Drupal style conventions, and add it to the Drupal change control system.

The idea could be added as a sub module for the Drupal Nodewords add-on module if Nodewords ever stops changing long enough to add something new.

For now the Pet meta tags every page module provides a quick way to solve an annoying problem.

Download

Download pet_meta_tags_every_page.zip and follow the usual module installation procedure. Expand the .zip file to get a directory named pet_meta_tags_every_page. Move the directory into /sites/all/modules/. Activate the module in Administer » Site building » Modules.

Create meta tags

When the module is activated, you will find a new table listed in the database. Use PHPMyAdmin or equivalent to insert the meta tags you need on every page.

Conclusion

If you are managing a regular Web site, you PHPMyAdmin direct or through cPanel and equivalents. Inserting a row in a table is easy. The Pet meta tags every page module does the rest. you can use your Web browser's View Page Source option to see the meta tag in the HTML.