# How to pass data to panel plugin's front end?

**URL:** <https://forum.getkirby.com/t/how-to-pass-data-to-panel-plugins-front-end/13252>\
**Category:** Questions\
**Tags:** v3\
**Created:** [March 8, 2019, 10:21am UTC](https://forum.getkirby.com/t/how-to-pass-data-to-panel-plugins-front-end/13252 "2019-03-08T10:21:20Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![hdodov](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/hdodov/32/8171_2.png) [@hdodov](https://forum.getkirby.com/u/hdodov)\
**Post date:** [March 8, 2019, 2:36pm UTC](https://forum.getkirby.com/t/how-to-pass-data-to-panel-plugins-front-end/13252/5 "2019-03-08T14:36:18Z")

</div>

I see. I agree with you, but it would be pretty inefficient to fetch a single static value with AJAX. If you look at the source of the rendered panel page, you see:

```auto
<script>window.panel = {"url":"http://localhost/ikarov/panel","site":"http://localhost/ikarov","api":"http://localhost/ikarov/api","csrf":"9e1534bfa938023d64360efbfedb4ed29fa2bf7e1d41b71efc5d96d66c34d964","translation":"en","debug":true,"search":{"limit":10}}</script>

<script src="http://localhost/ikarov/media/panel/3d4b11f6ee2a89fd5ace87c910cee04b/js/plugins.js" defer></script>
<script src="http://localhost/ikarov/media/panel/3d4b11f6ee2a89fd5ace87c910cee04b/js/vendor.js" defer></script>
<script src="http://localhost/ikarov/media/plugins/index.js" defer></script>
<script src="http://localhost/ikarov/media/panel/3d4b11f6ee2a89fd5ace87c910cee04b/js/app.js" defer></script>

```

So the panel already uses this method to provide server data to the Vue app. Perhaps a feature could be implemented that allows you to add your own `<script>` tag. Or perhaps some key in the `Kirby::plugin` definition of the plugin where you can specify some values to be included in `window.panel` up top.

---

_[View the full topic](https://forum.getkirby.com/t/how-to-pass-data-to-panel-plugins-front-end/13252)._
