About Minimal Site Profile for Processwire 3x

Minimal - Site Profile for CMS ProcessWire 3x

Category Site Profiles
A site profile represents a full ProcessWire site ready to be installed.
Release StateBeta
Close to stable, but users are advised to be cautious and test thoroughly.*
Authorrafaoski
Module Version1.0.1
Class NameSiteMinimal
Compatibility3.0
Date AddedApril 5, 2019
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/SiteMinimal/
How to install or uninstall modules

README

Minimal Site Profile For ProcessWire 3x with include new API additions like:

New “Unique” status for pages

New $page->if() method

API setting()

MarkupRegions

FunctionsAPI

How To Install

  1. Download the zip file at Github or clone directly the repo: git clone https://github.com/rafaoski/site-minimal.git
  2. Extract the folder site-minimal-master into a fresh ProcessWire installation root folder.
  3. During the installation of ProcessWire, choose the profile Minimal - Site Profile for ProcessWire 3x.

Basic Info

  1. Most of the profile settings and translates are in the _init.php file.
  2. Functions can be found in the _func.php file.
  3. The entire view is rendered in the _main.php file that uses markup regions.
  4. You can easily add hooks using the ready.php file.
  5. Options page added with the new “Unique” status, which you can use in this simple way like:
    pages('options')->site_name
    pages->get('options')->site_name

Additionally, you can use the icon font that are included:

Feather Icons

All images ( svg ) on the pages come from:

Icofont
Simpleicons ( ProcessWire Logo )

Debug Mode

By default, debugging is enabled in this profile.Debug mode causes all errors to be reported to the screen, which can be helpful during development or troubleshooting. Debug mode is not intended for live or production sites. To disable, proceed as below:

Edit this file: /site/config.php Find this line: $config->debug = true; Change the true to false, like below, and save. $config->debug = false;

If you want to use Laravel Mix you must first ensure that Node.js and NPM are installed on your machine.

Basic example to Debian and Ubuntu based Linux distributions:

Node.js

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -sudo apt-get install -y nodejs

See more installation options LINK

npm is installed with Node.js just check in linux terminal like below:

node -v
npm -v

Set BrowserSync inside folder /templates/webpack.mix.js and change your dev url

proxy: 'http://minimal.test/', to your installation processwire folder like:
proxy: 'http://localhost/your-processwire-installation-folder/',

Next install npm packages in your templates folder with command npm install
Now, boot up the dev server npm run watch, and you're all set go!
On completion, use the command npm run production to build styles and scripts in the dist folder

Simple Usage ( Basic Command )

  • Run npm install
  • Watch npm run watch
  • Build npm run production

All files to Webpack build steps is inside file ( webpack.mix.js )

Folder With all SCSS files is inside templates/asets/src/scss

All build styles and scripts is inside the ( templates/assets ) folder ( /css/mix.css or /js/app.js )

Comments

No comments yet. Be the first to post!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.