Added context to site and custom admin views to better target triggered events. Added the redering option in the admin edit view, so to expand forms via plugins. Improved the codename build in site and custom admin view.
This commit is contained in:
@ -1003,10 +1003,20 @@ class ComponentbuilderModelSite_view extends JModelAdmin
|
||||
{
|
||||
$data['codename'] = ComponentbuilderHelper::safeString($data['name']);
|
||||
}
|
||||
else
|
||||
{
|
||||
// always make safe string
|
||||
$data['codename'] = ComponentbuilderHelper::safeString($data['codename']);
|
||||
}
|
||||
// if context is empty create from codename
|
||||
if (empty($data['context']) || !ComponentbuilderHelper::checkString($data['context']))
|
||||
{
|
||||
$data['context'] = $data['codename'];
|
||||
}
|
||||
else
|
||||
{
|
||||
// always make safe string
|
||||
$data['context'] = ComponentbuilderHelper::safeString($data['context']);
|
||||
}
|
||||
|
||||
// Set the custom_get items to data.
|
||||
|
Reference in New Issue
Block a user