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

custom page documentation incorrect for Docker install #2009

Open
deeztek opened this issue Oct 11, 2024 · 5 comments
Open

custom page documentation incorrect for Docker install #2009

deeztek opened this issue Oct 11, 2024 · 5 comments

Comments

@deeztek
Copy link

deeztek commented Oct 11, 2024

Organizr Version: V 12.1.2490
Branch: Master
WebServer: Nginx
Operating System: Ubuntu/Docker

Problem Description:

Custom Pages documentation at: https://docs.organizr.app/help/custom-work/custom-pages does not seem to be valid for Docker installs. There is no "pages" directory under the "data" folder.


Reproduction Steps:

Errors on screen? If so paste here:


@tronyx
Copy link
Collaborator

tronyx commented Oct 11, 2024

Seems like a simple note needs to be added for you to create it if it doesn't exist. Have you tried that?

@causefx
Copy link
Owner

causefx commented Oct 11, 2024 via email

@deeztek
Copy link
Author

deeztek commented Oct 11, 2024

It looks like the "pages" folder is located under "/config/www/organizr/api/pages/". I was able to create a custom page and it displays, however I'm not able to insert the following between the <script> and </script>. It throws a 500 error:

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

<button id="zammad-feedback-form">Feedback</button>

<script id="zammad_form_script" src="https://helpdesk.domain.tld/assets/form/form.js"></script>

<script>
$(function() {
  $('#zammad-feedback-form').ZammadForm({
    messageTitle: 'Feedback Form',
    messageSubmit: 'Submit',
    messageThankYou: 'Thank you for your inquiry (#%s)! We\'ll contact you as soon as possible.',
    modal: true
  });
});
</script>

It throws a 500 error.

@causefx
Copy link
Owner

causefx commented Oct 11, 2024 via email

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

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

No branches or pull requests

3 participants