getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

Page creation triggers additional "new" page when " {{page.uuid.id}} " is present in blueprint info field #6243

Closed mit-stauffer closed 9 months ago

mit-stauffer commented 9 months ago

Description

Whenever a blueprint contains a field showing the uuid id of the page, the page creation with that template also triggers a simultaneous creation of unlisted page called "new".

Expected behavior
The additional page "new" should not be created.

Screenshots grafik

To reproduce

Add the following field (in this case to the blueprints/notes.yml) to the Kirby starterkit (4.1.0) and create a new "Notes" page

infofield:
  type: info
  text: " {{page.uuid.id}} "
afbora commented 9 months ago

This is known issue as #4955 and as workaround you can use like following:

infofield:
  type: info
  text: "{{ page.content.get('uuid') }}"