Closed calebgrove closed 7 years ago
If anyone has any opinion on this, I would love to hear it.
I would recommend storing just the optionkey
. The risk of having duplicate & outdated data is not worth the easier logic for me.
Agreed. After thinking about this for a little while, I was leaning heavily toward not having the entirety of the field stored. Of course if the optionkey
changes in the structurefield
, we will have the same problem.
In an ideal world, Kirby AutoID would work with structure fields (https://github.com/helllicht/kirby-autoid/issues/4) and select-a-structure could use the permanent ID to connect the two.
For now, I'm going to close this issue.
Given this blueprint:
This field currently writes this to the content file:
But, I would rather have it write it to the file as a single structure entry:
Pros:
structurepage
and filter through thestructurefield
to pull more data than theoptionkey
.Cons:
structurefield
would result in theEmployeeofthemonth
becoming outdated. For example, if you changedGary
's position toCEO
in thestructurefield
,Employeeofthemonth
would still be left with his position asIntern
.