Hi there, I'm not a coder and I was hoping someone could help me figure out if the following is possible.

I want a token which extracts the first x words of the body text. It that even possible? If so, is this the right place to ask for help? I have no idea where to start. Thanks a lot.

Comments

gaspaio’s picture

You can surelly do it through a custom token, if the default node related tokens aren't enough (install the Token module to see the list). You'll have to create a php snippet to compute the value (from $data['node']).

A node must be available in the context where you plan to use the custom token.

remkovdz’s picture

Thanks! Is it apprioriate if I ask for an example..? I'm not a developer.. Thanks anyway!

anybody’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 7 is now EOL.