FEATURE: add content id to directory name (only for galleries)
This commit is contained in:
@@ -83,15 +83,13 @@ class Gallery implements AppHandler
|
||||
|
||||
// create new directory for images
|
||||
$directory = Directory::create([
|
||||
'name' => $request->title,
|
||||
'name' => $content->id . '_' . $request->title,
|
||||
'description' => $request->description,
|
||||
'parent_id' => $parentDirectoryId
|
||||
]);
|
||||
|
||||
// save id into module_config array
|
||||
$settings = [
|
||||
'directoryId' => $directory->id
|
||||
];
|
||||
$settings = ['directoryId' => $directory->id];
|
||||
|
||||
// save settings
|
||||
$content->module_settings = json_encode($settings);
|
||||
|
||||
Reference in New Issue
Block a user