I have a site: mysite
and a node: mynode
On the node I'm using open graph with tokens
My open graph title field contains one token: [node:title] | mysite
So the result should look like this:
<meta content="mynode | mysite" property="og:title"></meta>
But the [node:title] token isn't working, so the result is:
<meta content=" | mysite" property="og:title"></meta>
Another tokens are working like [node:id] and [current-page:title]
And the [node:title] also worked with 7.x-1.6
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | opengraphtitle.png | 21.44 KB | fanky4 |
Comments
Comment #2
damienmckennaPlease let me know where you're filling in the [node:title] token.
Comment #3
fanky4 commentedThank you for the quick reply!
admin/config/search/metatags/config/mycontenttype
In the Open Graph title field
The attached image is half-hungarian but maybe it helps
Comment #4
damienmckennaThe node:title token is provided by core, so I'm surprised it isn't working for you.
Do you get any errors when you save the meta tags with [node:title] filled in? If you do then something is changing the available tokens, if you do not then something is changing the title.
Do you have anything installed that might affect the title for nodes, or might there be code in the theme or custom modules that would blank it out for some reason?
Comment #5
fanky4 commentedI don't get errors after save and also nothing in the log.
I don't think so. This metatag is not a new feature. It worked well until the 7.x-1.7 update. :\
When I revert the metatag to 7.x-1.6, it's working again.
Comment #6
damienmckennaDid you run the db updates and clear caches after updating?
Comment #7
fanky4 commentedYes, a couple of times. Even the live, local, and dev site. The problem is still exist
Comment #8
damienmckennaCan you please test with the current -dev version, see if the problem persists with it?
Comment #9
jeremylang commentedI bumped into this same issue after upgrading to 7.x-1.7 (though not specific to Open Graph). After a little bit of digging, I discovered that this section in metatag.module:
can be modified to correct the issue. If the entity is reloaded as in version 7.x-1.6:
The node tokens render as expected. Printing the $entities and $entity variables out, I see that the 'title' value in the cached $entity is NULL while it is populated in the re-loaded $entities. Not considering that the fix, but seems like there might be something up with the cached value.
Tried the latest dev build but the issues persists.
Additional Information:
My issue is with the Page Title field for the Global Node config in Metatags. Value is [node:title] - [site:name]. [site:name] renders, but [node:title] comes up blank. Using Page Manager's node_view to control the output of the node page.
Have cleared the cache and performed the database updates a few times without errors.
Comment #10
skein commentedHello
I had the same issue and it happened to me because ctools_node_content_content_type_render in CTOOLS specifically removed the title of the node. This is because I used panels and just needed to change the settings to Leave Title.
That solved the issue for me.
Comment #11
damienmckennaPlease confirm that a) you've updated to the latest version of CTools, Token and Metatag, b) if you're using Panels please make sure that the title field in Panels is set to %node:title. If the problem persists, please reopen this issue.