When I tell you I don’t even have npm installed you will laugh Im a oldschool dev from the good old days. When the build things (and for my feeling complex setups nowadays) in webdev started i was out. haha.
But anyway, thanks for the tip
I got it working with this:
hmm okay, i have setup my api route in config and panel plugin , then i get a 403 auth feedback. did not find in the docs something to setup an auth request for a panel plugin. is there maybe something like an api key i can define? is nothing secure i want to call from here. just 2 variables from site.
another idea would be to bring the site value into the page context via a hidden field and then get it via the props. maybe this is easier? but did not find a solution for it
its so hard to understand the context of how to do make something work in the plugins - e.g. get values from site in page context in the plugin.
i have some sort of settings and different texts in the the site defined. so in my site.txt are two fields where i need the value from in my panel plugin. is it possible to get the “site” page via the /api/pages/ ?
@slgdev If you need more than a preview for a single text field, you can try the new Kirby Live Preview plugin that let’s you preview the whole page (with unsaved changes!) right in the Panel: Live Preview – Kirby Tools