Examines the current item and then decides to show either the body text or the expanded text.
When the extended part is empty, the body part is chosen. Otherwise the extended part is shown.
| Part | Empty? | |
|---|---|---|
| Body | No | No |
| Extended | Yes | No |
| smartbody= | body part | extended part |
The body text could be interpreted as your full text, and the extended part could be interpreted as an 'introduction' or 'exerpt', which you want to show on the front page.
In the template used on the front page, you would use <%smartbody%> to insert an excerpt (if there is one), or the full text (if no excerpt). In the template for detailed items, <%body%> can then be used instead of the usual <%body%> + <%more%>, since <%body%> will contain the full item anyway.