Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brvier/pico-pages-listresume
A nested pages list with resume plugin for the stupidly simple & blazing fast, flat file CMS Pico
https://github.com/brvier/pico-pages-listresume
Last synced: 11 days ago
JSON representation
A nested pages list with resume plugin for the stupidly simple & blazing fast, flat file CMS Pico
- Host: GitHub
- URL: https://github.com/brvier/pico-pages-listresume
- Owner: brvier
- License: mit
- Created: 2014-01-30T08:06:15.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-30T13:54:34.000Z (almost 11 years ago)
- Last Synced: 2024-08-02T05:22:48.626Z (3 months ago)
- Language: PHP
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-blazingly-fast - pico-pages-listresume - A nested pages list with resume plugin for the stupidly simple & blazing fast, flat file CMS Pico (PHP)
README
# Pico Pages List Resume
A nested pages list with resume plugin for the stupidly simple & blazing fast, flat file CMS [Pico](http://pico.dev7studios.com).
This plugin is derivated from [Pico Page List Plugin](https://github.com/nliautaud/pico-pages-list)## Installation
Copy `pico_pages_listresume.php` to the `plugins` directory of your Pico Project.
## Usage
Add a generated nested pages list in your *theme* by using the following Twig variable :
{{ pages_listresume }}
You'll automatically get something like :
* [A cool page]()
A small resume of the page
* [Sub-page is coming]()
A small resume of the page
* [The choosen one]()
A small resume of the page
* category
* [A page]()
A small resume of the page
* [untitled]()
A small resume of the pageUnder the hood :
```html
-
A cool page
-
Sub-page is coming
A small resume of the page
-
The choosen one
A small resume of the page
-
category
A small resume of the page
-
-
untitled
A small resume of the page
```
## Features
The plugin generate a clean nested html list, using links only if the page exists. The page title is used if possible.
The lists items are defined by css classes allowing per-page or general manipulations :
```css
#nav .foo-page a {
/* access to a specific page link */
}
#nav .foo-page .child a {
/* access to a specific foo-page/child link */
}
#nav .is-current {
/* access to the current page item */
}
#nav .is-parent {
/* access to every parent item of the current one */
}
```
To exclude pages from the generated list, add to Pico config the setting `hide_pages`, and separate paths with commas. Childs of a path will be excluded with their parent :
```php
$config['listresume_hide_pages'] = 'this/page,all/in/here/';
```
To not generate link for folder :
```php
$config['listresume_create_folder_link] = false;
```