|
|
|
@ -105,6 +105,7 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates |
|
|
|
var command = new CreateSchema |
|
|
|
{ |
|
|
|
Name = "posts", |
|
|
|
Publish = true, |
|
|
|
Properties = new SchemaProperties |
|
|
|
{ |
|
|
|
Label = "Posts" |
|
|
|
@ -136,8 +137,9 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates |
|
|
|
IsListField = true, |
|
|
|
MaxLength = 100, |
|
|
|
MinLength = 0, |
|
|
|
Label = "Slug" |
|
|
|
} |
|
|
|
Label = "Slug (Autogenerated)" |
|
|
|
}, |
|
|
|
IsDisabled = true |
|
|
|
}, |
|
|
|
new CreateSchemaField |
|
|
|
{ |
|
|
|
@ -158,7 +160,6 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates |
|
|
|
|
|
|
|
var schemaId = new NamedId<Guid>(command.SchemaId, command.Name); |
|
|
|
|
|
|
|
await publishAsync(new PublishSchema { SchemaId = schemaId }); |
|
|
|
await publishAsync(new ConfigureScripts |
|
|
|
{ |
|
|
|
SchemaId = schemaId, |
|
|
|
@ -205,8 +206,9 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates |
|
|
|
IsListField = true, |
|
|
|
MaxLength = 100, |
|
|
|
MinLength = 0, |
|
|
|
Label = "Slug" |
|
|
|
} |
|
|
|
Label = "Slug (Autogenerated)" |
|
|
|
}, |
|
|
|
IsDisabled = true |
|
|
|
}, |
|
|
|
new CreateSchemaField |
|
|
|
{ |
|
|
|
@ -227,7 +229,6 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates |
|
|
|
|
|
|
|
var schemaId = new NamedId<Guid>(command.SchemaId, command.Name); |
|
|
|
|
|
|
|
await publishAsync(new PublishSchema { SchemaId = schemaId }); |
|
|
|
await publishAsync(new ConfigureScripts |
|
|
|
{ |
|
|
|
SchemaId = schemaId, |
|
|
|
|