Moved all placeholder behaviour to class function. Moved dynamic content to the content class.

This commit is contained in:
2022-12-11 17:06:13 +02:00
parent 4217b22f67
commit a2ec013566
17 changed files with 1816 additions and 1625 deletions

View File

@ -3087,8 +3087,8 @@ class Structure extends Get
'//', '/', $custom['file']
);
// update the dynamic component name placholders in file names
$custom['path'] = CFactory::_('Placeholder')->update(
$custom['path'], CFactory::_('Placeholder')->active
$custom['path'] = CFactory::_('Placeholder')->update_(
$custom['path']
);
// get the path info
$pathInfo = pathinfo($custom['path']);
@ -3227,10 +3227,10 @@ class Structure extends Get
*/
protected function updateDynamicPath($path)
{
return CFactory::_('Placeholder')->update(
return CFactory::_('Placeholder')->update_(
CFactory::_('Placeholder')->update(
$path, ComponentbuilderHelper::$constantPaths
), CFactory::_('Placeholder')->active
)
);
}