causefx / Organizr

HTPC/Homelab Services Organizer - Written in PHP
GNU General Public License v3.0
5.19k stars 292 forks source link

custom page documentation incorrect for Docker install #2009

Open deeztek opened 1 month ago

deeztek commented 1 month ago
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 commented 1 month ago

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

causefx commented 1 month ago

Yes – I believe the creation of folder is needed if not present.

From: Chris Yocum @.> Sent: Friday, October 11, 2024 8:23 AM To: causefx/Organizr @.> Cc: Subscribed @.***> Subject: Re: [causefx/Organizr] custom page documentation incorrect for Docker install (Issue #2009)

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

— Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/2009#issuecomment-2407643036 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3PJEVNJISAPWKPYXWQXATZ27UPBAVCNFSM6AAAAABPZELMT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXGY2DGMBTGY . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/AD3PJEVITALZJBEHLJXIEI3Z27UPBA5CNFSM6AAAAABPZELMT2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUPQG3ZY.gif Message ID: @. @.> >

deeztek commented 1 month ago

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 . 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 commented 1 month ago

The folder inside data – i.e. /data/pages is mapped dynamically to get pulled in. I can test further if you like.

From: deeztek @.> Sent: Friday, October 11, 2024 9:28 AM To: causefx/Organizr @.> Cc: causefx @.>; Comment @.> Subject: Re: [causefx/Organizr] custom page documentation incorrect for Docker install (Issue #2009)

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 . It throws a 500 error:

It throws a 500 error.

— Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/2009#issuecomment-2407750547 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3PJEWOQVGMGONU3VQXFMTZ274AZAVCNFSM6AAAAABPZELMT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXG42TANJUG4 . You are receiving this because you commented. https://github.com/notifications/beacon/AD3PJEQRJKIJ5RZREFOCIMLZ274AZA5CNFSM6AAAAABPZELMT2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUPQNNZG.gif Message ID: @. @.> >

github-actions[bot] commented 3 weeks ago

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