Table of Contents
If you want to send us your comments, please do so. Thanks
More on comments
Pico CMS
You can find Pico CMS here
Beware: When incorporating settings in multiple configuration files the first setting found will stick. Files are read in alphabetical order
Pico CMS installation
- Download the latest pico-release-vx.x.x.tar.gz file of the Pico CMS from the PicoCMS website or from the releases page on github
- In a terminal do
- mkdir /tmp/picocms
- cp [location of the pico-release-vx.x.x.tar.gz file]/pico-release-vx.x.x.tar.gz /tmp/picocms
- cd /tmp/picocms
- tar -xf pico-release-vx.x.x.tar.gz (Extact the tar.gz file)
- Upload to your webserver to the public_html directory using a FTPclient or copy local to /var/www. If you want to use a subdomain then create it first. Something like public_html/subdomain or local /var/www/subdomain
- Go to your webbrowser and check if it works by opening the main page: domain.tld. If you made a new domain or subdomain it can take some time before you can access the main page on your new website
- Download config.php from the PicoCMS config.php page. The overview is at the PicoCMS config.php main page
- Upload config.php to the rootdirectory of PicoCMS on the server
- Edit config.php to your needes. Remove the comment markers /* and */
Install Issues
We have seen the following error messages in our browser
- path (bis)
- Parse error: syntax error, unexpected 'testen' (T_STRING), expecting ',' or ';' in /home/username/domains/somedomainname.something/public_html/subdomainname/index.php on line 36
- Cannot find 'vendor/autoload.php'. Run composer install
Mostly they can be resolved by checking the downloaded PicoCMS file, remove everything from the server and upload again
Updating
Work in progress
From the Pico CMS website, to be evaluated, at Pre-bundled relaese:
I've used a pre-bundled release to install Pico
Okay, installing Pico was easy, but upgrading Pico is going to be hard, isn’t it? I’m affraid I have to disappoint you… It’s just as simple as installing Pico!
First you’ll have to delete the vendor directory of your Pico installation (e.g. if you’ve installed Pico to /var/www/html/pico, delete /var/www/html/pico/vendor). Then download the latest Pico release and upload all files to your existing Pico installation directory. You will be prompted whether you want to overwrite files like index.php, .htaccess, … - simply hit “Yes”. Please make sure to manually update all plugins and themes. That’s it! Now that Pico is up-to-date, you need to update all plugins and themes you’ve installed
Creating pages
Showing the current date. Add to the header between the two — 's
Date: "`r format(Sys.time(), '%d-B-%Y')`"
Page creation issues
Wrong page location
Be aware that you put your pages in (depending on your situation one of)
domain/content /var/www/content
and NOT in
domain/vendor/picocms/pico/content /var/www/vendor/picocms/pico/content
If you do you can get:
Fatal error: Uncaught exception 'RuntimeException' with message 'Invalid content directory “/home/domains/domain.tld/public_html/subdomain/vendor/picocms/pico/content-sample/”' in /home/domains/domain.tld/public_html/subdomain/vendor/picocms/pico/lib/Pico.php:411 Stack trace: #0 /home/domains/doamin.tld/public_html/subdomain/index.php(39): Pico→run() #1 {main} thrown in /home/domains/domain.tld/public_html/subdomain/vendor/picocms/pico/lib/Pico.php on line 411
custom_setting
When adding
{{ config.custom_setting }}
as described in /config.php to /themes/default/index.twig in
<div id="main"> <div class="container"> Hello {{ config.my_custom_setting }} An other Hello {{ content }} </div> </div>
then it should work. It does not work in .md pages in the domain/content directory
page.date_formatted
This does not work in /theme/index.twig nor in /content/index.md
<p class="date">Page date: {{ page.date_formatted }}</p>
nor does this
{{ page.date_formatted }}
nor does this
{{ page.date }}
How it should work: t.b.d.
Themes
Warning .twig files may NOT contain tabs. Use spaces
If you do use tabs you will get a Fatal error: Uncaught exception error
Create your own theme
Important files
themes/default/index.twig
Create your own theme based on the default theme
- Make a new directory: themes/theNameOfYourTheme on the server
- Copy themes/default/ to themes/theNameOfYourTheme
- Change in /config/config.yml in the item theme: default default to the theme name: theNameOfYourTheme
- Change in /config.php in the item $config['theme'] = 'default'; default to the theme name: theNameOfYourTheme
- Update the files in themes/theNameOfYourTheme to your needs
Theme Dimension
An example of Dimension can be found here
Installation
- Download the Dimension theme
- Upload the contents of the zipfile to public_html/somedomainname/themes . Make sure the foler is named /themes/dimension. The dimension-master directory is not needed
- In
/config.php
edit the theme line to
$config['theme'] = 'dimension';
The default theme is “default”
- Test if it works
Privacy issues
with Dimension: Tracking
Theme dimension uses
- Goolgle fonts from fonts.googleapis.com
- Pictures from html5up.net
- fontawesome-webfont.ttf (Is a binary file)
- font-awesome.min.css
- More ?? We think so
To be midigated
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.