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:
@ -2295,7 +2295,7 @@ class Fields extends Structure
|
||||
else
|
||||
{
|
||||
// set the rest of the fields
|
||||
$xmlValue = (string) ComponentbuilderHelper::getBetween($field['settings']->xml, $property['name'] . '="', '"');
|
||||
$xmlValue = (string) $this->setPlaceholders(ComponentbuilderHelper::getBetween($field['settings']->xml, $property['name'] . '="', '"'), $placeholders);
|
||||
}
|
||||
|
||||
// check if translatable
|
||||
@ -2872,6 +2872,14 @@ class Fields extends Structure
|
||||
// now set the value
|
||||
$replace[$replacekey] = $replacevalue;
|
||||
}
|
||||
// load the global placeholders
|
||||
if (ComponentbuilderHelper::checkArray($this->globalPlaceholders))
|
||||
{
|
||||
foreach ($this->globalPlaceholders as $globalPlaceholder => $gloabalValue)
|
||||
{
|
||||
$replace[$globalPlaceholder] = $gloabalValue;
|
||||
}
|
||||
}
|
||||
// start loading the field type
|
||||
$this->fileContentDynamic['customfield_' . $data['type']] = array();
|
||||
// Type <<<DYNAMIC>>>
|
||||
|
Reference in New Issue
Block a user