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:
@ -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;
|
||||
|
Reference in New Issue
Block a user