Content last modified Monday 3 September 2018
hop to #bottom
Categories:
Author:
Current version:
0.10
About It:
Get it:
Rate it:
  • Helpful?
  • 2 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

smd_wrap

Wrap text with HTML, class, prefix, suffix, and apply tranforms to it in the process. Transforms can be chained together, and include:

  • trim
  • linkify
  • format as date
  • escape
  • sanitize
  • split / combine
  • process with Textile
  • process with Forms

If the item you are intending to wrap is empty / non-existent then no wrap is applied and nothing is displayed. This makes it an ideal candidate for placing around other tags and saves having to do the “assign content to <txp:variable>, check if variable exists” dance.

<txp:else /> is supported so you may take action if the contained content is empty.

Article Request Count:
Keywords/tags:
Initially released:
22 Oct 2011
Posted here:
22 Nov 2011

You know you want to visit the Archives.
Published with Textpattern