Added the new placeholder area for global & component level placeholders. Just like customcode you can now with the placeholders generate dynamic behaviour with placeholders all over the JCB custom areas.

This commit is contained in:
2019-02-16 00:03:21 +02:00
parent d46459301c
commit 25c14b45de
84 changed files with 7147 additions and 42 deletions

View File

@ -930,6 +930,16 @@ class ComponentbuilderModelField extends JModelAdmin
{
// fix the values
case 'name':
// check if we have placeholder in name
if (strpos($property['value'], '[[[') !== false || strpos($property['value'], '###') !== false)
{
$property['value'] = trim($property['value']);
}
else
{
$property['value'] = ComponentbuilderHelper::safeString($property['value']);
}
break;
case 'type':
$property['value'] = ComponentbuilderHelper::safeString($property['value']);
break;