Code Monkey home page Code Monkey logo

spirit-bomb's Introduction

Spirit Bomb ProcessWire

A new site for Virtual Beings Record Label Spirit Bomb built using the ProcessWire CMF

Table of Contents

  1. Site Structure

Site Structure

We are using the RockFrontEnd module to control templates, which are written in the LATTE php template engine. The structure of pages and templates is roughly as follows:

root
├── node_modules
├── src
│   └── js
│       ├── walletconnect.js
│       └── SDK.js
├── wwwroot
│   ├── site
│   │   ├── assets
│   │   ├── classes
│   │   │   ├── DefaultPage.php
│   │   │   └── HomePage.php
│   │   └── templates
│   │       ├── scripts
│   │       │   └── walletconnect-dist.js
│   │       ├── layouts
│   │       │   ├── default.php
│   │       │   └── home.php
│   │       ├── sections
│   │       │   ├── home.latte
│   │       │   ├── label.latte
│   │       │   ├── label-item.latte
│   │       │   ├── editions.latte
│   │       │   └── (etc)
│   │       ├── styles
│   │       │   ├── fonts
│   │       │   └── custom.less
│   │       ├── _init.php
│   │       ├── _main.php
│   │       ├── default-page.php
│   │       ├── news-item.php
│   │       ├── label-item.php
│   │       └── (etc)
│   └── wire
├── .env
├── .gitignore
├── package-lock.json
├── package.json
└── README.md

Templates & Layouts

The action happens in the templates directory. Here we create any number of php pages and include the ProcessWire namespace in them; they are essentially empty pages acting as containers. In the layouts directory are stored any number of layouts, default.php being our main RockFrontEnd page renderer. This page will pull from the sections directory to render a template based on a page's assigned template in ProcessWire. Thus if we add a new template in ProcessWire (i.e. concert-visuals) and assign pages to it, we will need to add that page to the templates directory when we try pulling in its corresponding latte files from the sections directory via default.php.

The page classes correspond to the pages in the layout directory, only in lowercase and without the word 'Page'. These custom classes extend ProcessWire Page classes, and the names must match.

Links


Copyright 2023 Spirit Bomb, Inc.

spirit-bomb's People

Contributors

protrolium avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.