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

kpaul’s picture

subscribe

akahn’s picture

I'm also having this issue. Is there a solution?

gaijinu’s picture

same here

altparty’s picture

Interested too. same issue here.

arman’s picture

Greetings any update on this front -- if not we may put together a patch for it.

tanjerine’s picture

just 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

ardee-1’s picture

Sarah: Details on just how you did that, please! Did you use drupal_set_html_head() from within your Contemplate PHP code?

Thanks!

tanjerine’s picture

Title: Using Meta tags together Contemplate doesn't allow the node teaser to appear in the description meta tag » Nodewords + Contemplate => Doesn't show teaser in metatags
Status: Closed (fixed) » Active

hi 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. :(

ardee-1’s picture

sarah,

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.

parrottvision’s picture

same problem here. subscribe.

avpaderno’s picture

Title: Nodewords + Contemplate => Doesn't show teaser in metatags » Using Meta tags together Contemplate doesn't allow the node teaser to appear in the description meta tag
Status: Active » Closed (fixed)

As the Drupal 5 version is not supported anymore, I am changing the status of this report.

Status: Active » Closed (fixed)