Manage dynamic blocks and expand the editor library
This commit is contained in:
@@ -74,7 +74,7 @@ final class StudioController extends AdminController
|
||||
if ($preset === null) {
|
||||
throw new RuntimeException('请选择区块类型。');
|
||||
}
|
||||
$repo->createSection($slug, $key, $preset[0], 'plain', $preset[1], $type === 'articles' ? BlockTemplates::ARTICLE_FEED : null);
|
||||
$repo->createSection($slug, $key, $preset[0], $preset[4] ?? 'plain', Html::sanitize($preset[1], $key), $preset[3] ?? null, $preset[2] ?? '');
|
||||
|
||||
return $this->success($request, "/admin/pages/$slug/$key");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user