I'd like to put the first bit of the body field into a layout.

I assumed Core body -> set to teaser would do that for me, but not.
The teaser thing is the full-formatted result of the current theme, not just the first paragraph of the body. So it already includes the title linked to its node, some tags, author info and then the first paragraph of the body...
When I would go to another theme, the result would again be dependent of that other themes implementation of node teaser.

How can I grab the first paragraphs of the body text?

Wimmmmm

Comments

swentel’s picture

Status: Active » Fixed

Ok, node_prepare is the bummer function here. The easiest (and the only solution without doing extra queries) was simple: no formatters 'teaser' and 'body' but instead relying on what Drupal Core tries to do. So in that case:

- Full node = full body content
- Teaser list (eg /node or views display suite build mode 'teaser' = teaser content
- Any other build mode = teaser content

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.