Assets for Processwire

Processwire is a content management framework.

I was looking to change the directory structure of the Processwire.

1
2
3
4
5
|-- index.php
|-- installer.php
|-- README.md
|-- site
`-- wire

I am not the first person to talk on the subject. There are other threads like Installation paths and moving folders, Common practices

Anyway I thought of trying the same and for serving the js, css, images I wrote my first processwire module Assets

Some of the portions are from Aura.Framework and Aura.View

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|-- cli
|-- composer.json
|-- index.php ( which is moved to web folder )
|-- installer.php
|-- README.md
|-- site
|   |-- assets
|   |-- config.php
|   |-- hello.css
|   |-- install
|   |-- modules
|   `-- templates
|-- vendor (3rd party vendors from PHP, Eg: Aura.Includer )
|-- httpdocs ( you can name this folder what ever you like )
|   |-- index.php
|   |-- site ( css, js and images copied from realpath )
|   `-- wire ( css, js and images copied from realpath )
`-- wire
    |-- config.php
    |-- core
    |-- index.config.php
    |-- modules
    |-- README.txt
    `-- templates-admin

You also need to change the $rootPath in index.php accordingly. Hope someone will find it useful. I am releasing it under BSD-2-Clause

module, processwire

Comments