ElementHelper icon indicating copy to clipboard operation
ElementHelper copied to clipboard

TV's need to be correct case

Open JayCarney opened this issue 12 years ago • 1 comments

This is something I might look at fixing myself, but essentially if you enter a Tv Type with incorrect capitalisation (which is somewhat inconsistent throughout modx) you get possible errors with duplicate output renderers, all tv types need to be sanitised when they're coming from the JSON file

JayCarney avatar Oct 01 '13 06:10 JayCarney

Is this confirmed as the problem you were having in Issue 15?

Perhaps just simply making the type lowercase would be enough e.g.

if ($property === 'type')
{
    $element->set($property, strtolower($value));
}

or do some types require capitalisation?

roryg avatar Oct 01 '13 13:10 roryg