Posted by Dragolin on April 24, 2011 at 12:27pm
4 followers
Jump to:
| Project: | Open Graph meta tags |
| Version: | 6.x-1.5 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
Issue Summary
I entered a couple of default values (for example: emailadres in contact), however when I edit/create a page the default value is not filled out ...
I also have "Mapping content type to meta type" enabled, but this is not working either, on either content type the og:type is empty ...
Comments
#1
I believe you will not see this when creating the node. Did you check the source? What is produced when the page is constructed?
#2
hmm you are right, the values are entered in the node, but they appear empty when creating/editing
feature request: is it possible to have them show up while editing? that should avoid some confusion ...
#3
Yep, they're intentionally left empty to avoid having to save OG data for a node unless it overrides the default values. With the main tags the description tell you why they're empty. I think I just need to add descriptions to the contact and location tags clarifying this matter.
#4
Fixed in 6.x-1.x-dev.
#5
#6
This works perfectly 'as designed' in the 7.x-1.1 version, really cool!
The only thing I can't get to work is og:description.
It seems to get the node:title by default, but I want to have it use the meta description that is generated by
http://drupal.org/project/metatags_quick
RDF Mapping that meta field to og:description doesn't seem to have an effect. (override by Open Graph Meta tags module?)
#7
Added a new hook in latest dev release: og_tag_render_alter
Documentation in opengraph_meta_test_module.module
/**
* Implements hook_og_tag_render_alter().
*
* @param $node the node whose tag is being rendered.
* @param $name the name of the OG tag being rendered, e.g. title, image.
* @param $value the value of the OG tag being rendered.
*
* @return the altered value to render for the given tag.
*/
Perhaps this will suffice?
#8
Changes will available in the next release.