variables added in template

master
Gustavo Luigi 2023-06-06 08:19:28 -03:00
parent b556449580
commit 3bff6e2a75
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAKGJCCKvmWZl-L5bBF0uS5BWf0gN4ZkpI&callback=initMap&v=weekly" defer></script>
<script>
const contentUrl = "{{url('/api/contents/'.$content->id)}}";
const locationField = "location";
const locationField = "{{config('settings.location_field')}}";
</script>
<script>
function initMap() {

View File

@ -106,8 +106,8 @@
</div>
<script src="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js"></script>
<script>
const contentUrl = "{{url('/types/locations/contents')}}";
const locationField = "location";
const contentUrl = "{{url('/types/'.config('settings.type').'/contents')}}";
const locationField = "{{config('settings.location_field')}}";
//const filterFields = ['categoria'];
</script>
<script>