Please view following link
http://drupal.org/node/775916

Comments

jvizcarrondo’s picture

I have no experience with this module, but I think that you could serve:

  if (function_exists('nodewords_get')) {
    $metatags = nodewords_get('node', $node->nid);
    foreach ($metatags as $tagname => $tagcontent) {
      if ($tagname == 'abstract') {
        print $tagcontent;
      }
    }

You can view this article:
Adding Dublin Core Metadata to Drupal(http://openconcept.ca/blog/mgifford/adding_dublin_core_metadata_to_drupal)
Hope that helps
Juan

sagar ramgade’s picture

        if (function_exists('nodewords_get')) {
          $metatags = nodewords_get('node', $node->nid);
        }
      
          foreach ($metatags as $tagname => $tagcontent) {
            print "<dt>$tagname</dt>";
            print "<dd>$tagcontent</dd>";
          }
        

What abstract do u mean is it a particular array key?

Acquia certified Developer, Back end and Front specialist
Need help? Please use my contact form

werushka’s picture

I mean "Abstract" meta tag that usually goes to the head section

actually this code is a function of nodewords, I am trying to manually put "Abstract" meta tag to some other location in the page

jvizcarrondo’s picture

Hi Werushka

if (function_exists('nodewords_get')) {
    $metatags = nodewords_get('node', $node->nid);
    foreach ($metatags as $tagname => $tagcontent) {
      if ($tagname == 'abstract') {
        print "<dt>$tagname</dt>";
        print "<dd>$tagcontent</dd>";
      }
    }
}

Is this code does not work?

Juan

werushka’s picture

can i get you paypal email please thank you very much

jvizcarrondo’s picture

This restriction

     if ($tagname == 'abstract') {
        print "<dt>$tagname</dt>";
        print "<dd>$tagcontent</dd>";
      }

shows only the label abstract, then you can place anywhere on the template

Juan

nevets’s picture

The code could use some extra error checking

// Make sure we on a page displaying a single node
// and that the function nodewords_get exists
if ( !empty($node) && function_exists('nodewords_get')) {
    $metatags = nodewords_get('node', $node->nid);
    foreach ($metatags as $tagname => $tagcontent) {
      // Only show the meta data for abstract and only if data is set
      if ($tagname == 'abstract' && !empty($tagcontent)) {
        print "<dt>$tagname</dt>";
        print "<dd>$tagcontent</dd>";
      }
    }
}
jvizcarrondo’s picture

I send my account, using your contact form
Juan

werushka’s picture

I sent the money thanks