Is there an easy to follow howto add rdf tags to drupal pages? In particular, I'm trying to add opengraph tags (http://ogp.me/). Wierdly, I find in D7 core one reference to what appears to be an opengraph tag. In profiles/standard/standard.install, there's some code... <code> 'mapping' => array( 'field_image' => array( 'predicates' => array('og:image', 'rdfs:seeAlso'), 'type' => 'rel', ), </code> ...as if it is trying to do exactly what I want, to add og:image data when a node contains an image field. Yet I can find no other code anywhere related to this. Any pointers appreciated. Thanks, -Dave
I don't think the RDF does meta tag data, you have to add those yourself. It seems something more for a project like http://drupal.org/project/metatagsto support (and is planned). Alos http://drupal.org/project/opengraph_meta works right now. Dave Reid dave@davereid.net On Tue, Jan 25, 2011 at 2:10 PM, David Cohen <drupal@dave-cohen.com> wrote:
Is there an easy to follow howto add rdf tags to drupal pages?
In particular, I'm trying to add opengraph tags (http://ogp.me/).
Wierdly, I find in D7 core one reference to what appears to be an opengraph tag. In profiles/standard/standard.install, there's some code...
<code> 'mapping' => array( 'field_image' => array( 'predicates' => array('og:image', 'rdfs:seeAlso'), 'type' => 'rel', ), </code>
...as if it is trying to do exactly what I want, to add og:image data when a node contains an image field. Yet I can find no other code anywhere related to this.
Any pointers appreciated. Thanks,
-Dave
Thanks Dave for that info. I just assumed D7's rdf support would change the way that is done. -Dave On Tue, 25 Jan 2011 14:42 -0600, "Dave Reid" <dave@davereid.net> wrote:
I don't think the RDF does meta tag data, you have to add those yourself.
participants (2)
-
Dave Reid -
David Cohen