Firstly I should explain where I am adding the code as this could affect what is happening. By default my theme has print $head; print $head_title;
In the head section of the html.tpl.php. I have tried also adding php code to output print render($content['metatags']); but this does nothing.
I do have meta keywords and title outputting into the code which is working fine but I would also like description adding - however this is proviing problematic and all suggestions I have found on the bug / support tracker seem to be trying the same things. Please could you tell me what I need to put into the head section of the html.tpl.php to get it to work. I have seen a few post about suggesting that the code should go into the body but as the head section is therefore completed I can see how adding meta tags to the page body will do anyhting
Nick
Comments
Comment #1
Oceanman commentedCheck and see if it works when you use other themes to verify that your set up is working at all.
I do not know if this will help you but I was having some problems and it helped me. Disable the module, uninstall it then enable it again. This will clean out the database of all the content from this module. It is a clean start, you could say. You will have to put in all your tokens and metatags content again.
Comment #2
nick.thorley commentedI think its something to do with how the content is being output. if I remove the default entry in the description tag which is [node:summary] then I get no output or description tag. If I just type text such as "test message" then the description tag is output with that text. Hence I assume that the summary is empty. How can I make sure that summary is outputting text.
Nick
Comment #3
Oceanman commentedIt sounds like your description metatag is working as it should.
You wrote:
"Summary" is not an option for the metatags module as far as I can see. I am confused.
Comment #4
nick.thorley commentedI just assumed that if the description wasnt entered into the metatags description box that it would take the summary of the existing content and use that as the meta tag
Nick
Comment #5
Oceanman commentedI better understand what you mean. If you leave the description field empty at all levels (global, node and so on) it will stay empty. You need a token like the one you mentioned, [node:summary], in the description field for that field to be populated with that content.
Comment #6
protools commentedwork only if summary forcibly added
how about trimmed body like widget for teaser ?
Comment #7
damienmckennaRather than hacking away trying to get this working, and ultimately building work-arounds for an existing work-around in Metatag, the output logic has been re-written thanks to jenlampton and I'm hoping it works better now. Please try the latest -dev release and please let me know if it works as-is, and re-open the issue if it's still not working.
That said, please be aware that right now it doesn't let you override tags for taxonomy term pages due to a core bug, please keep an eye on #1700160: Support taxonomy term pages until taxonomy supports hook_entity_view() for further updates.
Comment #8
damienmckennaRelated and honestly a higher priority: #1708718: Ensure Meta tags work OOTB with Drupal core
I'm going to fix that and then see how to resolve this issue.
Comment #9
gagarine commentedStill don't work with the latest dev.
Comment #10
damienmckennaThis is a duplicate of #1295524: [node:summary] does not work in default content meta tag when summary left empty.