Closed (fixed)
Project:
Nodewords: D6 Meta Tags
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Aug 2010 at 10:44 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damienmckennaTagging 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.
Comment #2
tkoscielski commentedI 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.
Comment #3
damienmckenna@tkoscielski: are you sure you checked off some of the tags on the General Settings page to "In HTML Tag Head"?
Comment #4
damienmckennaComment #5
damienmckennaFYI it may help to paste in some example output of the headers so we can see exactly what's displaying. Thanks.
Comment #6
johnvsc commented"In HTML Tag Head"
where is that ?
I am looking at admin/content/nodewords
Comment #7
damienmckenna@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".
Comment #8
tkoscielski commentedI 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.
Comment #9
dave reidThat'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.
Comment #10
damienmckenna@davereid: Is it worth adding a note to the README.txt and project page about this?
Comment #11
akosiana commentedissue resolution: go to module, configure nodewords, set output html displays. thanks
Comment #13
TheCheshireCat commentedHello
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
Comment #14
dave reid@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.
Comment #15
TheCheshireCat commentedthats 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
Comment #16
dave reidThere'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():
Comment #17
damienmckennaLets work out the exact code that's needed and add it to the README.txt file.
Comment #18
josh.estep commentedI 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:
Comment #19
damienmckennaHere's a patch to README.txt that documents what is necessary in order for it to work.
Comment #20
damienmckennaA slight improvement, this shows the chameleon_page function to more clearly indicate where the change should be made.
Comment #21
damienmckennaThis has been committed.