Skip to content
  • Services
  • Work
  • About
  • Blog
Contact
Douglas Green
  • Services
  • Work
  • About
  • Blog
Contact
Douglas Green

preload_replace and whitespace

  • ExpressionEngine

I just discovered that the “preload_replace” tag does not work if spaces are included around the equal sign. Try it yourself:

{preload_replace:toast = 'is burnt'}
{preload_replace:bread='is buttered'}

The toast {toast}.

The bread {bread}.

You’ll find that the toast is not burnt, but the bread gets buttered.

At least in EE version 2.4.0.

Previous Post EE Conditionals in JavaScript
Next Post Number Formatter ExpressionEngine plugin
  • Home Builder Website Design
  • Small Business Website Design
  • Squarespace Website Design
  • Development for Design Studios
  • WordPress Design & Development
  • WordPress Hosting & Maintenance Services
  • Website Design and Development Process
  • Resources
  • Charlottesville, VA 22902
  • info@douglasgreen.com
  • 434-260-0233

© Douglas Green  •  Green Interactive, LLC.  •  Charlottesville, VA 22902

Privacy Policy  •  Terms of Service  •  Cookie Policy  •  Disclaimer