Closed (fixed)
Project:
Node displays
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2009 at 11:50 UTC
Updated:
12 Jan 2010 at 19:40 UTC
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
Comment #1
swentel commentedOk, 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