This repository contains a series of small usage examples of the the Content Field plugin for Craft CMS.
In order to run the examples, you'll need a web server and an empty database that meets the requirements of Craft CMS.
This demo includes a project.yaml
file and a setup script that will execute once
you install the CMS. After cloning this repository, you can follow the official
installation instructions
starting at step 2.
-
Clone this repository.
$ git clone [email protected]:sebastian-lenz/craft-contentfield-examples.git
-
Run the setup script, the script will collect all required information and setup the database.
$ cd craft-contentfield-examples $ ./craft setup
-
Setup a web server and point the document root to
craft-contentfield-examples/web
.
-
Download a copy of this repository and unzip it.
https://github.com/sebastian-lenz/craft-contentfield-examples/archive/master.zip -
Within the unzipped folder, copy the file
.env.example
to.env
. -
Open the newly created file
.env
with a text editor and find the line that contains the security key. Set the key to a random password.# The secure key Craft will use for hashing and encrypting data SECURITY_KEY=""
If you wish to, you can also fill in the database configuration. Save the file afterwards.
-
Setup a web server and point the document root to the folder
web
inside the unzipped folder. -
Open a web browser and visit
http://<Hostname>/index.php?p=admin/install
(replace<Hostname>
with your web server’s host name) and follow the instructions.
You can find the primary repository of the Content Field plugin here:
https://github.com/sebastian-lenz/craft-contentfield
Please post any questions or issues there.