Except for title all tags like keywords and description don't show up in the head area.

Fresh install Drupal 6.17 now running 6.19 and nodewords 6.x-1.12-beta9.

The main Modules page has this version of nodewords as the recommended one for download, and I downloaded from the main Drupal Module page. After experiencing problems and doing research, the project page lists nodewords 1.11 as stable, which one is right?

Comments

damienmckenna’s picture

Issue tags: +v6.x-1.12 blocker

Tagging this. We want the next release to be rock solid, so if you have some time please help test the v6.x-1.x-dev release to see if all of the above issues are resolved.

tkoscielski’s picture

I have duplicated the same issue, no tags in the head area. I initially installed v6.x-1.x-dev on a clean version of Drupal. The base Drupal system was 6.17 and was updated to 6.19 prior to adding nodewords v6.x-1.x-dev to the system.

All pages are not showing any tags. I do have the Metatags admin in each page visible. I have only enabled the basic module to minimize troubleshooting.

damienmckenna’s picture

@tkoscielski: are you sure you checked off some of the tags on the General Settings page to "In HTML Tag Head"?

damienmckenna’s picture

Status: Active » Postponed (maintainer needs more info)
damienmckenna’s picture

FYI it may help to paste in some example output of the headers so we can see exactly what's displaying. Thanks.

johnvsc’s picture

"In HTML Tag Head"

where is that ?

I am looking at admin/content/nodewords

damienmckenna’s picture

@johnvsc: Go to admin/content/nodewords. Expand the "Enable Meta Tags" fieldset, then expand the "Meta Tags to Output" fieldset, then in the table that displays there are three columns - "Meta Tag", "In HTML Tag Head" and "In Search Index".

tkoscielski’s picture

I discovered today that nodewords is affected by themes in 6.17 and 6.19. In my initial post, we were using the Marvin template and that was when I posted that I could not see META tags in the html head. Today when we switched templates to ZEN, the META tags suddenly showed up as expected. We also had the PAGETITLE module installed and it too also started working as expected.

When I cycled through the default themes, it appears that both Marvin and Chameleon are affected i.e. no metatags showing as defined by Nodewords.

Since I am just getting familiar with Drupal, I don't know if I encountered a bug with Nodewords, a Theme issue or I misconfigured something. I had everything configured properly as indicated in prior posts. From everything I see it all seems to be related to the themes.

Thanks for the help.

dave reid’s picture

That's because those themes don't use the PHPtemplate theme layer, which doesn't support altering variables prior to output, which is what Nodewords needs to use.

damienmckenna’s picture

@davereid: Is it worth adding a note to the README.txt and project page about this?

akosiana’s picture

issue resolution: go to module, configure nodewords, set output html displays. thanks

TheCheshireCat’s picture

Title: No Metatags showing in the head area » No Metatags showing in the head area using Marvin theme

Hello

I'm using the Marvin theme under Drupal 6.19 and I can't get the nodewords module to work - I can input keywords and other meta tags when editing my content pages, but when I publish them the meta tags won't show up. How can I fix this?
Many thanks

dave reid’s picture

Title: No Metatags showing in the head area using Marvin theme » No metatags when using non-phptemplate themes (Marvin, Chameleon)

@TheCheshireCat: The only way to fix is to use a different theme. Nodewords cannot support a non-phptemplate theme since it needs to use hook_preprocess_page() in order to add meta tags.

TheCheshireCat’s picture

thats bad news for me because I spent a lot of time tweaking that theme to my personal needs.. Is there an alternative to nodewords? Would it be effective to insert the meta tags manually somehow? I know some HTML and PHP so if its not too complicated I should be able to handle it.
If theres no other way to use meta tags then I'll use a different theme.
Thanks

dave reid’s picture

There's no reliable way for us to do it from Nodewords if the theme doesn't allow modules to hook into page output.

The only way you can get this to work is if you add the following to your theme's themename.theme file and themename_page() function before any calls to drupal_get_html_head():

if (module_exists('nodewords')) {
  $variables = array();
  nodewords_preprocess_page($variables);
}
damienmckenna’s picture

Version: 6.x-1.12-beta9 » 6.x-1.x-dev
Status: Postponed (maintainer needs more info) » Needs work

Lets work out the exact code that's needed and add it to the README.txt file.

josh.estep’s picture

I tried this code with Chameleon on a fresh D6 install but meta tags were not displayed; however, they did appear when I did the following:

if (module_exists('nodewords')) {
    $variables = array();
    nodewords_preprocess_page($variables);
    drupal_set_html_head($variables['head']);
  }
damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new1.63 KB

Here's a patch to README.txt that documents what is necessary in order for it to work.

damienmckenna’s picture

StatusFileSize
new1.74 KB

A slight improvement, this shows the chameleon_page function to more clearly indicate where the change should be made.

damienmckenna’s picture

Status: Needs review » Fixed

This has been committed.

Status: Fixed » Closed (fixed)
Issue tags: -v6.x-1.12 blocker

Automatically closed -- issue fixed for 2 weeks with no activity.