Standalone page from a DevPack Component

I have a folder on my website as follows:

pdf_folder
    pdf_export.php

In my Elements DevPack, I have a component that contains the code for the page pdf_export.php (in Component > templates> pdf_export.php.

At the moment I am manually copying the php file into the published location. Is there a way to be able to set that webpage automatically? Normally you include a component in an Elements container in an Elements webpage, I just want the contents of the component file to be the webpage with nothing else added.

I have done a partial mitigation by making that page a stub (which is unlikely to change) which invokes the main pdf_export logic from the assets folder, which may change.

If I’m understanding you correctly, you want a file that is deployed to the server but not included on the page. Correct?

If so, I think you could use the Backend template directory for this. Hope that helps :slight_smile: