Hi Community and Support Team !
There is a possibility, that when the positions field
inside the blueprint cards.yml
is updated.
The stored value that was initially assigned to the child page with the position field is automatically updated.
For example:
Parent blueprint:
route:
site/blueprints/pages/cards.yml
title: Cards
files: false
pages:
template: card
fields:
positions:
label: Positions for employees within the company
type: tags
help: For example: Financial Advisor, Manager, etc.
Children blueprint:
route:
site/blueprints/pages/card.yml
title: Card
files: true
pages: false
fields:
position:
label: Position (Select an option)
required: true
help: Obligatory field
type: select
min: 1
max: 1
options: query
query: page.parent.positions.split(",")
Result:
route:
content/cards/cards.txt
file:
cards.txt
Title: Cards
----
Positions: Financial Advisor, Manager, Technical support
Children:
route:
content/cards/test-card/card.txt
file:
card.txt
Title: Test Card
----
Position: Manager
Positions field update
Old: Manager
New: Financial Manager
Updating the position value of all the pages that have the Manager
value in the position
field with the new Financial Manager value.
Final result in automatic:
Title: Test Card
----
Position: Financial Manager
I await your response and help please.
Thank you very much.
Regards!