Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
// 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>";
}
}
}
Comments
print $tagcontent;
I have no experience with this module, but I think that you could serve:
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
<?php if
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
I mean "Abstract" meta tag
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
print $tagcontent;
Hi Werushka
Is this code does not work?
Juan
yep it works great is it
can i get you paypal email please thank you very much
I do not understand, $tagname == 'abstract' not filter
This restriction
shows only the label abstract, then you can place anywhere on the template
Juan
The code could use some extra
The code could use some extra error checking
Account
I send my account, using your contact form
Juan
I sent the money thanks
I sent the money thanks