Content last modified Monday 6 March 2017
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
Article modified:
12 Nov 2012

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern