Forum

Thread tagged as: Problem, Docs

Getting Started Video: Creating Pages

Hello,

I am just starting with Perch and am working through the Getting Started Videos. I get to the "Creating Pages" video and am having some trouble with creating a new page from a Master page. Everything appears to work as suggested except that the file for the page is not written in the correct folder.

I found the page written OUTSIDE of the root folder of the site. My testing server has sites under 'www' and this test site is in a folder called 'swift'. The file was written at the root of 'www' rather than under 'swift'. I noticed this in the database table where all other pages have '/swift/..." this one just has '/our-history.php'.

Am I missing a setting somewhere?

Thank you, Kevin

Kevin Sweet

Kevin Sweet 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you saying you're building a site in a subfolder?

Yes. But even so, in the tutorial a subfolder for the 'about' pages is created presumably to house them and the file is still placed well outside of that.

I created a Virtual Host to make the sub folder the root folder and everything seems to work as it should.

I am curious if there is a way to direct where new pages are made. With my limited knowledge, all new pages seem to be placed in the root. I figured out how to move them but is there a behaviour that can be set up to state that when a page is created from a certain Master Page, to locate them in a specific folder?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Please post your Diagnostics Report.

Here is the diagnostic report:

Perch LTM: 3.0.14
Production mode: Production (100)
Installed apps: content (3.0.14), assets (3.0.14), categories (3.0.14), perch_forms (1.10), perch_gallery (2.8.9)
DB driver: PDO
DB tables: perch3_categories (0), perch3_category_counts (0), perch3_category_sets (0), perch3_content_index (260), perch3_content_items (40), perch3_content_regions (12), perch3_forms (0), perch3_forms_responses (0), perch3_menu_items (10), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_templates (2), perch3_pages (5), perch3_resource_log (73), perch3_resource_tags (0), perch3_resources (23), perch3_resources_to_tags (0), perch3_settings (20), perch3_user_passwords (0), perch3_user_privileges (32), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = [ 'perch_forms', 'perch_gallery'
    ];
Editor plug-ins:
H1: 818056dbd7e201243206b9c7cd88481c
L1: db0d2e48f9dbe690284e2f04c4e47492
F1: 3b606135b33e6a102526838f4152a807
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
installedAt: 3.0.14
update_3.0.14: done
latest_version:
on_sale_version: 3.0.14
headerScheme: light
dashboard: 0
sidebar_back_link: 0
hide_pwd_reset: 0
keyboardShortcuts: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
content_skip_region_list: 0
assets_restrict_buckets: 0
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: ******
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: perch
PERCH_DB_PREFIX: perch3_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: *******
PERCH_EMAIL_FROM_NAME: ********
PERCH_LOGINPATH: /perch
PERCH_PATH: H:\wamp64\www\swift\perch
PERCH_CORE: H:\wamp64\www\swift\perch\core
PERCH_RESFILEPATH: H:\wamp64\www\swift\perch\resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_GMAPS_API_KEY: AIzaSyCf32r7j4ZD5vCcVQoqzrM64oCaBqvjYqA
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_ASSET_VERSION: f704e7442d11292c99b5
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: H:\wamp64\www\swift\perch\templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_CUSTOM_EDITOR_CONFIGS:
PERCH_ENABLE_EXIF: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings
PHP: 7.1.9
Zend: 3.1.0
OS: WINNT
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $
MySQL server: 5.7.19
Free disk space: 7.38 GB
Extensions: Core, bcmath, calendar, ctype, date, filter, hash, iconv, json, mcrypt, SPL, pcre, readline, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, bz2, SimpleXML, xml, wddx, xmlreader, xmlwriter, apache2handler, openssl, curl, com_dotnet, fileinfo, gd, gettext, gmp, intl, imap, ldap, mbstring, exif, mysqli, Phar, pdo_mysql, pdo_sqlite, soap, sockets, sqlite3, xmlrpc, xsl, Zend OPcache
GD: Yes
ImageMagick: No
PHP max upload size: 10M
PHP max form post size: 10M
PHP memory limit: 128M
Total max uploadable file size: 10M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
HTTP_HOST: swift
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_REFERER: https://swift/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.9
HTTP_COOKIE: cmsa=1; PHPSESSID=a1ku65ckle8h0h5g4ntr3m76ht
PATH: C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files\Microsoft MPI\Bin\;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\nodejs\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
SystemRoot: C:\Windows
COMSPEC: C:\Windows\system32\cmd.exe
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR: C:\Windows
SERVER_SIGNATURE: <address>Apache/2.4.27 (Win64) PHP/7.1.9 Server at swift Port 80</address>
SERVER_SOFTWARE: Apache/2.4.27 (Win64) PHP/7.1.9
SERVER_NAME: swift
SERVER_ADDR: ::1
SERVER_PORT: 80
REMOTE_ADDR: ::1
DOCUMENT_ROOT: H:/wamp64/www/swift
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: H:/wamp64/www/swift
SERVER_ADMIN: wampserver@wampserver.invalid
SCRIPT_FILENAME: H:/wamp64/www/swift/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 60342
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1517684087.685
REQUEST_TIME: 1517684087
Drew McLellan

Drew McLellan 2638 points
Perch Support

Each page as a Subpage Folder option. When a new page is created as a child of an existing page, this option is used to place the file.

You can create a subfolder for each video separation. https://babasupport.org/routers/apple-airport-customer-service/297