hi, we currently have this problem with metatags. our setup is that we're using contemplate to change the layout of a node and we're using cck for the extra details needed for that node. so as with any node, we fill up the title & body field and the cck fields. we've setup metatags to show all metatags for the node. as well as to use the teaser when the meta-description is not set.
everything shows up in the head portion except for the description. the only time the description showed was when i manually entered a meta-description. otherwise the metatag doesn't show. (metatag sample from a node - see below)
i dont know if this should be a contemplate issue or a nodewords issue. the reason im posting it here is because contemplate outputs the teaser (in any formatting or any text i specify) when i view a page that shows all node teasers. so it does what it's supposed to do. but for some reason nodewords isn't able to "get" the teaser.
is there any setting or tweak i should be doing for this to work?
this is all that we see:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="copyright" content="copyright © 2008" />
<meta name="keywords" content="Cycles,Diamondback" />
<meta name="robots" content="index,follow" />
<meta name="DC.title" content="460Ub" />
Comments
Comment #1
kpaul commentedsubscribe
Comment #2
akahn commentedI'm also having this issue. Is there a solution?
Comment #3
gaijinu commentedsame here
Comment #4
altparty commentedInterested too. same issue here.
Comment #5
arman commentedGreetings any update on this front -- if not we may put together a patch for it.
Comment #6
tanjerine commentedjust to update you guys, what we finally ended up doing for our client was to grab the data we needed from the node and generate the other metatags ourselves.
-- sarah
Comment #7
ardee-1 commentedSarah: Details on just how you did that, please! Did you use drupal_set_html_head() from within your Contemplate PHP code?
Thanks!
Comment #8
tanjerine commentedhi ardee,
err no, what we did was we got the node id ($node->nid) and we did a dbase query for the particular field we needed (say, description or summary) and we put that into the head.
probably not the most elegant or efficient of solutions, but it worked for us given the time constraints we had.
-- sarah
[edit] sorry, just saw the replies. :(
Comment #9
ardee-1 commentedsarah,
You put it into the ... ? (If you post something here in pointy brackets, I think you need to put special markup around it or it won't show up.)
I tried using drupal_set_html_head() from within the "head" portion of page.tpl.php, but I guess it was too late in the process for that to work (?) so I ended up instead inserting code there that prints a description meta-tag directly. My only concern is that the new tag is not physically next to the existing meta-tags; there's other markup in between. But I think (hope) that having it anywhere in the head is OK.
-ardee.
Comment #10
parrottvision commentedsame problem here. subscribe.
Comment #11
avpadernoAs the Drupal 5 version is not supported anymore, I am changing the status of this report.