collection -> inspiration
This commit is contained in:
parent
dfda911664
commit
0d41b27cc3
9 changed files with 61 additions and 16 deletions
|
|
@ -1,3 +1,15 @@
|
|||
|
||||
<script>
|
||||
const kirbyData = {
|
||||
user: {
|
||||
role: '<?= $kirby->user()->role() ?>',
|
||||
<?php if ($kirby->user()->role() == 'client'): ?>
|
||||
client: {
|
||||
name: '<?= $kirby->user()->client()->toPage()->title() ?>',
|
||||
uuid: '<?= $kirby->user()->client()->toPage()->uuid() ?>',
|
||||
}
|
||||
<?php endif ?>
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue