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:
@ -1179,6 +1179,20 @@ abstract class ComponentbuilderHelper
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* validate that a placeholder is unique
|
||||
**/
|
||||
public static function validateUniquePlaceholder($string)
|
||||
{
|
||||
$string = self::safeString($string);
|
||||
// this list may grow as we find more cases that break the compiler (just open an issue on github)
|
||||
if (in_array($string, array('component', 'view', 'views')))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* The array of dynamic content
|
||||
*
|
||||
|
Reference in New Issue
Block a user