Skip to content
This repository was archived by the owner on Nov 12, 2023. It is now read-only.

ContentFiles

micz edited this page Oct 10, 2015 · 2 revisions

Your content files are stored in the evn_site/_pages/ folder.

They contains the site content and the directory structure that represents your site.

You can define folders and subfolders (containing at least an index.html or an index.php file) or only files. The files must be .php or .html file. You can use template vars to set values to variables to be used in the template files.

The requested url structure is reflected to the directories structure of your content files, as described below, searching in order for a .php file, a .html or a subdir (first for an index.php, then for index.html).

URL Path Search
yoursite.com (1) evn_site/_pages/index.php
(2) evn_site/_pages/index.html
yoursite.com/test (1) evn_site/_pages/test.php
(2) evn_site/_pages/test.html
(3) evn_site/_pages/test/index.php
(4) evn_site/_pages/test/index.html
yoursite.com/test/sub (1) evn_site/_pages/test/sub.php
(2) evn_site/_pages/test/sub.html
(3) evn_site/_pages/test/sub/index.php
(4) evn_site/_pages/test/sub/index.html

### Reserved Files The following files are reserved. | **File** | **Usage** | **Notes** | |:---------|:----------|:----------| | _`_`sidebar.php_ | It stores the sidebar contents | from version 1.2 |
### Reserved Paths The following paths are reserved, so a content file, if present, will not be loaded. | **Path** | **Usage** | **Notes** | |:---------|:----------|:----------| | _/error_ |Used to serve the 404 error page|any version| | _/js_ |It's a real folder used to store application wide js files|from version 1.1| | _/ajax_ |It's the reserved path for all the plugins ajax calls|from version 1.1| | _/admin_ |It's the reserved path for the admin dashboard.
Customizable in application\config\evinrude.php with the variabile `$config['evn_admin_path']`.|from a future version|

Notes

  • The first directory level yoursite.com/subdir cannot start with a _ like yoursite.com/_wrong

Clone this wiki locally