2017 © Pedro Peláez
 

pico-plugin pico-file-prefixes

This is Pico's official file prefixes plugin, to drop file prefixes from page URLs. Pico is a stupidly simple, blazing fast, flat file CMS.

image

phrozenbyte/pico-file-prefixes

This is Pico's official file prefixes plugin, to drop file prefixes from page URLs. Pico is a stupidly simple, blazing fast, flat file CMS.

  • Tuesday, July 24, 2018
  • by PhrozenByte
  • Repository
  • 2 Watchers
  • 5 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Pico File Prefixes

This is the repository of Pico's official file prefixes plugin., (*1)

Pico is a stupidly simple, blazing fast, flat file CMS. See http://picocms.org/ for more info., (*2)

PicoFilePrefixes removes file prefixes (e.g. date identifiers) from page URLs. For example, the blog article content/blog/20160707.visit-us-on-github.md normally corresponds to the page URL http://example.com/pico/blog/20160707.visit-us-on-github, however, by installing this plugin, the article will be accessible through the much more user-friendly URL http://example.com/pico/blog/visit-us-on-github. This makes organizing your website's pages on the filesystem easier than ever before., (*3)

Install

You can either install PicoFilePrefixes using Composer, or using a single PHP plugin file. We recommend you to use Composer whenever possible, because it allows you to keep the plugin up-to-date way more easily., (*4)

If you use a Composer-based installation of Pico and want to either remove or install PicoFilePrefixes, simply open a shell on your server and navigate to Pico's install directory (e.g. /var/www/html/pico/). Run composer remove phrozenbyte/pico-file-prefixes to remove PicoFilePrefixes, or run composer require phrozenbyte/pico-file-prefixes (via Packagist.org) to install PicoFilePrefixes., (*5)

If you really want to install PicoFilePrefixes using a single PHP plugin file, download the latest release and upload the PicoFilePrefixes.php file to the plugins directory of your Pico installation (e.g. /var/www/html/pico/plugins/)., (*6)

PicoFilePrefixes requires Pico 2.0+, (*7)

Config

The plugin recursively drops file prefixes of all files in the content/blog/ directory by default. You can specify other directories by altering the PicoFilePrefixes.recursiveDirs and/or PicoFilePrefixes.dirs config variables (both expect YAML lists) in your config/config.php. The former parses all files of a directory recursively (i.e. including all its subfolders), whereas the latter parses just files in this particular directory. The default configuration looks like the following:, (*8)

PicoFilePrefixes:
  recursiveDirs:
    - blog
  dirs: []

If you want to additionally enable the plugin for the content/showcase/ directory, try the following configuration:, (*9)

PicoFilePrefixes:
  recursiveDirs:
    - blog
    - showcase
  dirs: []

If you want to enable the plugin for any folder, try the following:, (*10)

PicoFilePrefixes:
  recursiveDirs:
    - .
  dirs: []

To enable the plugin for pages in the content/misc/ directory only (i.e. not including subfolders like content/misc/sub/), try the following:, (*11)

PicoFilePrefixes:
  recursiveDirs: []
  dirs:
    - misc

The Versions

24/07 2018

dev-master

9999999-dev http://picocms.org/

This is Pico's official file prefixes plugin, to drop file prefixes from page URLs. Pico is a stupidly simple, blazing fast, flat file CMS.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

seo url-shortener pico pico-plugin picocms picocms-plugin pico-file-prefixes

24/07 2018

v2.0.0

2.0.0.0 http://picocms.org/

This is Pico's official file prefixes plugin, to drop file prefixes from page URLs. Pico is a stupidly simple, blazing fast, flat file CMS.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

seo url-shortener pico picocms picocms-plugin pico-file-prefixes

24/06 2017

v1.0.3

1.0.3.0 http://picocms.org/

This is Pico's official file prefixes plugin, to drop file prefixes from page URLs. Pico is a stupidly simple, blazing fast, flat file CMS.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

pico pico-plugin

17/09 2016

v1.0.2

1.0.2.0 http://picocms.org/

This is Pico's official file prefixes plugin, to drop file prefixes from page URLs. Pico is a stupidly simple, blazing fast, flat file CMS.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

pico pico-plugin

11/07 2016

v1.0.1

1.0.1.0 http://picocms.org/

This is Pico's official file prefixes plugin, to drop file prefixes from page URLs. Pico is a stupidly simple, blazing fast, flat file CMS.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

pico pico-plugin

08/07 2016

v1.0.0

1.0.0.0 http://picocms.org/

This is Pico's official file prefixes plugin, to drop file prefixes from page URLs. Pico is a stupidly simple, blazing fast, flat file CMS.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

pico pico-plugin