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

Oceanman’s picture

Check 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.

nick.thorley’s picture

I 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

Oceanman’s picture

It sounds like your description metatag is working as it should.
You wrote:

Hence I assume that the summary is empty. How can I make sure that summary is outputting text.

"Summary" is not an option for the metatags module as far as I can see. I am confused.

nick.thorley’s picture

I 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

Oceanman’s picture

I 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.

protools’s picture

work only if summary forcibly added

how about trimmed body like widget for teaser ?

damienmckenna’s picture

Version: 7.x-1.0-alpha6 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Rather 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.

damienmckenna’s picture

Related 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.

gagarine’s picture

Title: Description not being output » Description not ouput if summary is not manually added instead of the timmed body
Status: Postponed (maintainer needs more info) » Active

Still don't work with the latest dev.

damienmckenna’s picture

Status: Active » Closed (duplicate)