Closed (duplicate)
Project:
Metatag
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2013 at 14:38 UTC
Updated:
2 Apr 2013 at 16:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
douglasmiller commentedAttached patch
Comment #2
damienmckennaThis is working from an incorrect assumption that a site maintainer wouldn't want the meta tag fields to show, even if there wasn't a configuration specifically for that entity type. Instead, what you're looking for is this: #1286270: Option to disable meta tags per entity/bundle/object
Comment #3
douglasmiller commentedI must be interpreting the configuration page incorrectly. I was operating on the assumption that disabling the User configuration would disable metatags for the User entity. I have done some testing with the 7.x-1.x branch and have observed that my assumptions are wrong.
Here are the steps that I performed to verify using the HEAD of the 7.x-1.x branch:
However, the 7.x-1.0-beta4 version of metatag behaves very differently.
Here are the steps that I performed to verify using the tag 7.x-1.0-beta4:
Based on your earlier comment, I am going to assume that the beta4 version is not behaving correctly. The current functionality in beta5 does make the most sense to me.
The metatag_entity_info_alter function adds 'metatags' => TRUE to the user entity, therefore there should be meta tags for the user entity. Since the User configuration is disabled, it is logical that the Global configuration is inherited.
I am still confused about the patch that I posted. The metatag_entity_has_metatags will always return TRUE if the entity supports metatags, even though the metatag_config_is_enabled function returns FALSE. Returning isset($config_exists[$instance]) will always be TRUE since the introduction of the metatag_config_is_enabled in commit 140a3243d60a1935a2776df6ac459c1dbb713494. The previous implementation would only set $config_exists[$instance] to a non NULL value if there was an enabled configuration.
Sorry for the wall of text, I just want to verify that I understand how the module is supposed to function.
Comment #4
dave reidYes, the assumption is that the admin/config/search/metatags/config is the default meta tags configuration only, not 'does this entity type support meta tags or not'. Disabling records there should only disables the defaults.