Closed (duplicate)
Project:
Metatag
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2011 at 16:20 UTC
Updated:
16 Oct 2012 at 21:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
brunorios1 commentedadmin/config/search/metatags/config/add
Comment #2
traviscarden commentedThank you @brunorios1. I can create per content type configurations from there, but if I can altogether disable meta tags for a particular content type or hide the node form settings it's not obvious to me how.
Comment #3
Kendall Totten commentedI agree, I also think the ability to customize the default tokens for the meta description & tags by content type would be helpful. For example I have a specific "news" content type that has a separate field for the node summary, and I'm not utilizing the default Body summary field. So I'd like to switch the token *only that content type* from [node:summary] to [node:field_front_page_teaser].
It would make sense to have these settings under Structure > Content Type > Name-of-Content-Type > Manage Fields > Meta Tags /Edit
Thank you for your work!!
Comment #4
traviscarden commentedI must not have been clear in my original description. I'm not talking about setting default values for meta tags on a content type basis (which, as @brunorios1 points out, can already be done from
admin/config/search/metatags/config/add). I'm talking about hiding the whole fieldset on node edit forms of arbitrary content types.Comment #5
mitch albert commentedsubscribe
Comment #6
Anonymous (not verified) commentedModified the title slightly. I have a need for differing meta tag tokens for differing content types. For instance I've created a content type that has no body field so there is no node:body or node:summary for the token. Allowing the field modification delete for the content type could handle the original request of Showing/Hiding the Meta Tags field; I don't know how feasible/doable that is though.
Comment #7
pminfI'm using the Entity Registrations module for event signup. Registrations are fieldable entities and meta tags are undesired visible in form. So it is necessary to hide those.
Comment #8
traviscarden commented@ernie, if I read you correctly, what you're trying to do can already be accomplished by creating separate configurations at
admin/config/search/metatags/config/add. I'm returning the issue title to the original.Comment #9
Chaulky commentedThis might be a duplicate of http://drupal.org/node/1429100
Comment #10
socialnicheguru commentedlike in #7, I am using an entity and do not want the meta tag field set to show up.
this will also help reduce the page weight.
I am using the feedback module.
I went to admin/config/search/metatags
I disabled all of them.
the metatag field still showed up in the feedback box.
Why is that?
Comment #11
Chaulky commentedThe settings at admin/config/search/metatags allow you to set custom settings for the meta tags on different entities, but disabling the configuration simply disables the custom settings; it doesn't disable meta tags on those entities.
Comment #12
socialnicheguru commentedso there is no "global disable"?
Comment #13
Chaulky commentedI haven't looked at the code to confirm, but I do not believe it can be completely disabled for any particular entity/bundle type.
Comment #14
dman commentedSee here for a fix to the feedback problem, and a start at an explanation fo rhow entities can choose not to have metatags at all.
http://drupal.org/node/1543900#comment-6130492
However, it is a fair request that metatag should allow this option to be flagged from the metatag UI.
Comment #15
kevinquillen commentedYes. There are content types or entities that need no meta data associated to them. I would like to disable them on a bundle basis too.
Comment #16
urbanbricks commentedSubscribe
Comment #17
Anonymous (not verified) commented@urbanbricks: Please stop doing the old style "subscribe" to follow an issue. Now there is the big "Follow" button to use so that we don't get 1000's of "subscribe" notices.
Comment #18
jax commentedHaving same issue.
How about modifying
metatag_entity_supports_metatags()to check if any configuration is actually enabled for the current bundle.For example, if you have an Article node bundle you could check if there are settings for that specific bundle, if not for Node (that are enabled) and if not you check if Global is enabled. Does that sound like a valid approach and would that function the place to do it?
Comment #19
jax commentedA first version.
If there is no enabled config for the current entity:bundle just return false. Obviously this still needs some work to integrate cleanly but this works for node bundles.
An alternative would be to just add a metatag on/of checkbox on each bundle's settings form.
Comment #20
jax commentedAdded a little break to stop the foreach when it's no longer needed.
Comment #21
jax commentedSorry for the spam, but yet another alternative would be that if a specific configuration for a entity/bundle combination is added but disabled that the form is not shown. That would leave the possibility to leave the node configuration enabled and just disable the metatag form for one content type.
Comment #22
jax commented#1718594: Disabling metatags for bundles no longer works. marked as dupe of this one.
Comment #23
JvE commentedMarking this as a duplicate of #1281770: Disable metatags by default on all entitity types, enable it only on needed and popular types - nodes, terms
Comment #24
damienmckennaReopening.
@JvE: that issue is for controlling the meta tags per entity type, this is to control it per node entity bundle, which is not the same thing.
Comment #25
jax commentedAnyway, this seems to be fixed in the latest alpha. When you disable Global and Node and only leave per bundle settings the metatag fields only show up for those bundles.
Comment #26
JvE commentedYes, this issue was solved by #1281770: Disable metatags by default on all entitity types, enable it only on needed and popular types - nodes, terms which was about more than just types but included bundles as well.
Comment #27
damienmckennaLets continue the discussion of disabling the output of specific meta tags in #1286270: Option to disable meta tags per entity/bundle/object.
Comment #27.0
damienmckennaUpdated issue summary.
Comment #28
pratip.ghosh commentedAn alternate approach may be to use the form #after_build property.