This module is most useful for being able to add per-content-type description text before or after the teaser. Apparently any description text will replace the teaser.

Comments

hanoii’s picture

Can you give me more details to understand and reproduce your problem.

Thanks,
a.=

eyecon-1’s picture

Sure. I am trying to change the meta name="description" for one content type to "my descriptive text" followed by the teaser. There is no node token for either the teaser or the body. Therefore, "my descriptive text" will replace the teaser for the description.

In other words, I am trying to get the kind of functionality that meta-tag provides for key words.

hanoii’s picture

Status: Active » Closed (fixed)

A bit late, but you can use, with a bit of PHP knowledge, the Custom Tokens and create a token for the teaser and use it with this module. There's also the ability to use your own PHP replacements with this module for the description field.

Marko B’s picture

Dont understand why body and teaser tokens are not present. Most certanly ppl would use it for descrtiption as this is what you want to put in desc.

joecanti’s picture

The reason the node body and teaser tokens are not present is that the token module doesnt deal with node body or node teaser, so these tokens dont exist for this module to use. It would cause too much server load to generate these tokens apparently.

Your best bet would be a little php snippet to pull the first 20 words out of the node body - that's what I'm looking for now so will post back if anything found.

Joe

ccbelland’s picture

Hi Joe

Did you find this PHP snippet? I need the same exact thing for Custom Tokens. If you did, would you mind sharing?

Thank you!

joecanti’s picture

Hi ccbelland,

sorry nope - didn't find anything to help me out.

I'm now using meta tags quick and find it can do everything I need. because I use panels, it's good because it's field based, so I can add these fields to panels to get the meta data into the html.

All the best,

Joe