<$mt:EntryExcerpt$>

Ouputs the value of the excerpt field of the current entry in context. If the excerpt field is empty, it will draw from the main text of the entry to generate an excerpt.

Attributes:

  • no_generate (optional)

    If the excerpt field is empty, this flag will prevent the generation of an excerpt using the main text of the entry.

  • words (optional; default "40")

    Controls the length of the auto-generated entry excerpt. Does not limit the content when the excerpt field contains content.

  • convert_breaks (optional; default "0")

    When set to '1', applies the text formatting filters on the excerpt content.

This page was last updated on 2008-04-14, 22:19. [Edit]

5 Notes

Can you please give an example of how to use the words option in this tag?

@Guin

       <mt:entryexcerpt words="15">

spits out 15 words.

Original text format is messed up in the entry excerpt as default, and I was trying to show the correct format with following code:

but unfortunately, this just doesn't work, is this the right way to go? what did you guys do to achieve this?

Thanks in advance.

code:(brackets trimed) mt:entryexcerpt words="15"

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.