Value Trimmer

Developer

Laisvunas

3rd Party (Commercial)


EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Extension

Tags

This add-on trims the values of entry, forum post and comment fields before saving them in the database. It allows to avoid problems caused by ExpressionEngine's inconsistencies in handling white-space characters.

This add-on trims the values of entry, forum post and comment fields before saving them in the database.
It allows to avoid problems caused by ExpressionEngine’s inconsistencies in handling white-space characters.

The first inconsistency solved by this add-on is this: in ExpressionEngine values of the form fields are saved without trimming,
but outputted trimmed as the values of single variables and not trimmed as the values of variables in conditionals.
This inconsistency can lead to mysterious template bugs,
see e.g. this thread.

The second inconsistency is this: ExpressionEngine does not allow to post comment having “name” or “comment”
field empty, but allows to post post comment where values of “name” or “comment” fields consist of only white-space characters.
The same is the case with Forum module. ExpressionEngine does not allow to start forum thread having empty title or post empty forum post,
but forum thread having title consisting of one or more white-space characters or white-space only forum post is allowed.

After installing and enabling this add-on (no settings to define) you will be free of such problems.

Hooks Used

If the add-on is an extension, and ties into ExpressionEngine's core files, it will use ExpressionEngine hooks. We are listing any hooks the add-on uses for developers to have an easier time locating other add-ons that they can reference for their own work.

  1. submit_new_entry_start
  2. forum_submit_post_start
  3. insert_comment_start

This entry was created December 22, 2010, 12:13 pm.
This entry was last updated April 11, 2012, 3:34 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!