Closed (fixed)
Project:
Framework
Version:
7.x-3.6
Component:
PHP code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
10 Apr 2012 at 23:54 UTC
Updated:
23 Jan 2024 at 13:42 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedHello,
Quick update: I tried to add the following code in template.php, with no success at all:
/**
* Print out Custom Meta tags & Description
*/
function framework_metatag($variables) {
$element = &$variables['element'];
element_set_attributes($element, array('name', '#value' => 'content'));
unset($element['#value']);
return theme('html_tag', $variables);
}
So far I haven't found any solution to print out Meta Tags, Meta description and Title from the Metatag module.
However modules "Pagetitles" + "(quick) Meta tags" are working fine with the theme.
Comment #2
Anonymous (not verified) commentedUpdate #2: The issue comes from Metatag module.
If you have custom .tpl files, you MUST call the "render($page['content'])" function in the .tpl file, otherwise metatags won't be called.
Complete solution in this thread:
http://drupal.org/node/1293214#comment-5878744
Topic closed.