I have a problem when creating pages. The website is located in a folder named'v4' and the Perch files are in a folder named 'hekla'. Now, when I create a page in the Perch backoffice it is created at the root of the website, i.e. not in the'v4' folder where the other Perch pages are located. I can move the page to the'/v4' folder from Perch's back office by editing the'Location' tab but I have another problem. In the created page the following code is placed: <?php include(str_replace('/', DIRECTORY_SEPARATOR,' v4/hekla/templates/pages/default.php'); ?> and it does not work.
I have to manually replace the path'v4/hekla/templates/pages/default.php' by 'hekla/templates/pages/default.php' for the page to finally work.
1. how to create the page directly in the'/v4' folder?
2. How to indicate the correct path to 'hekla/templates/pages/default.php' in the created page?
Thank you in advance for your answers.