Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom script #1052

Closed

Conversation

vitormattos
Copy link
Contributor

@vitormattos vitormattos commented Apr 15, 2021

Usage example

Go to backend admin > Settings > Custom script.
image
In textarea put your script, i.e.:

<script>
console.log('Hi!');
</script>

Places of the script block will be executed:

  • application/views/appointments/message.php
  • application/views/appointments/book_success.php
  • application/views/appointments/book.php
  • application/views/general/error404.php

Close #974

@alextselegidis
Copy link
Owner

Hi @vitormattos

Thanks for the PR!

I find this feature a little bit dangerous to work with and for this I will not be merging it with the application.

Adding a custom script directly to the view files is a very straighforward tasks for any dev and soon enough it will become even easier with the upcoming page loading flow.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants