Valet switch PHP version with these commands
Install PHP 5.6 and switch Valet to PHP 5.6
valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
If you need help setting multiple versions of PHP such as PHP 7.1 and PHP 5.6 in Valet please see https://gist.github.com/bgarrant/b9a2f7fb8ff06c9a45086359ded7a95e or below
COMMANDS
Valet switch PHP version with these commands
Install PHP 5.6 and switch Valet to PHP 5.6
valet stop
brew unlink php71
This will install Statamic to your /home/USERNAME/
directory and have the needed public facing files files in your /home/USERNAME/public_html/
folder.
If you need help setting up above document root, please visit https://docs.statamic.com/knowledge-base/running-above-webroot.
local
public_html
|-- assets
cd /home/USERNAME/PATH/TO/REPO && git add --all && git commit -m "Automatic Hourly Commit"
If you would like do adjust the frequency, select a different option from the Common Settings Drop Menu or adjust the values for Minute, Hour, Day, Month, Weekday.
This method will work for all Pages and Mounted Collections (just like Pages view in CP).
sitemap.html
and add it to your theme/layouts/
folder.<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ nav from="/" include_home="true" include_entries="true" exclude="our-team" }}
After trying several methods, I find this the best way to setup a multi-day events page in Statamic...especially if you need daily scheduled event times as well. Please see the finished product at https://www.fishcap.net/events/huk-bassmaster-elite-at-the-st-lawrence-river-presented-by-black-velvet.
fields:
start_date:
display: Start Date
If any PHPStorm users want better syntax coloring for Antlers I figured out a better way.
Install Handlebars/Mustache plugin and enable the checkbox for “Open HTML files as Handlebars/Mustache” under Languages & Frameworks > JavaScript > Templates. Not perfect but much, much better!
This makes it even better. Disable Inspection and Syntax for Handlebars by click on Hector icon and changing the Highlighting Level for Handlebars to "None". Now no inspection errors!
Enjoy Statamic Antlers inside .html files in PHPStorm.