I have setup a profile site install which has custom tokens created, and assigns them to a content type.

These are appearing at the bottom of the create/edit content screen, and have the tokens as default values listed, but when I do a node_load_multiple and go over the nodes, the metatags array is empty.. interestingly enough, if I go and modify one of the metatag token values and copy that value into another meta tag, that value now shows, it is only an issue when using default values.

From what I can tell, the table 'metatag' doesn't get anything added into it if you use default values, but if you modify the default values, eg. to add a space at the start and hit save on the piece of content, it then adds the entry into the 'metatag' table.

Has anyone come across this before?
edit: I forgot to add that viewing the piece of content on its own loads the meta tags into the page source as expected, and that it is only when calling programmatically to get the metatags.

Comments

pkil’s picture

Issue summary: View changes

edit: adding more information

DamienMcKenna’s picture

Status: Active » Closed (won't fix)

This is by design, it only loads the overridden meta tags with the entity object because the defaults are then merged during display in metatag_metatags_view().

DamienMcKenna’s picture

Issue summary: View changes

added in info about metatag table