Update SLUG field in server side post_create and put_update hooks.
This commit is contained in:
@@ -107,15 +107,15 @@ permissions:
|
||||
put: false
|
||||
delete: false
|
||||
|
||||
# hooks:
|
||||
# post:
|
||||
# create:
|
||||
# type: javascript
|
||||
# file: hooks/article/post_create.js
|
||||
# put:
|
||||
# update:
|
||||
# type: javascript
|
||||
# file: hooks/article/put_return.js
|
||||
hooks:
|
||||
post:
|
||||
create:
|
||||
type: javascript
|
||||
file: hooks/articles/post_create.js
|
||||
put:
|
||||
update:
|
||||
type: javascript
|
||||
file: hooks/articles/put_update.js
|
||||
|
||||
fields:
|
||||
- !include fields/article/_article.yml
|
||||
|
||||
@@ -176,9 +176,9 @@ fields:
|
||||
choices:
|
||||
endpoint: "articles"
|
||||
params:
|
||||
sort: "article.publish_date.from"
|
||||
sort: "article.general.publish_date.from"
|
||||
filter: { "article.assignments.pages": { source: "path" } }
|
||||
template: { twig: "{{ article.content.title }}" }
|
||||
template: { twig: "<div>{{ article.content.title }}</div><div>{{ article.general.locale }}</div>" }
|
||||
- name: tags
|
||||
type: string[]
|
||||
meta:
|
||||
|
||||
@@ -5,7 +5,7 @@ meta:
|
||||
label:
|
||||
de: Einstellungen zum Artikel
|
||||
en: Article Setings
|
||||
activeTab: 0
|
||||
activeTab: 1
|
||||
subFields:
|
||||
- name: general
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user