Plugin development - Content value as Prop Value

<?php Kirby::plugin('name/custom', [ 'fields' => [
    'custom' => [
        'props' => [
            'message' => function ($message = "value from blueprint") {
                return page()->Custom()->value();
            }
        ]
    ]
]]);

is a better way to return the already existing field value from the txt content file to the plugin Vue Component? Thx in Advance.

Not sure i tottally understand the question but maybe this helps. You can get the field data from Vue…

<script>
...
data() {
  return {
    something: this.$store.getters["content/values"]()["yourfieldname"]
  }
},
...
</script>
1 Like

thank you, for the answer! I wanted the inital input value to be the text from the content .txt
As far as i am aware there is no created() { load() } function on a field definition.