sapper
January 7, 2020, 4:29pm
1
<?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
sapper
January 7, 2020, 10:18pm
3
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.