Mecha CMS

Add extra functionality to the core engine.

Archive Block

Table of Contents
  1. Basic Usage 
  2. Advance Usage 
    1. Sorting 
    2. Folder Selection 
    3. Nesting Level 

Archive page generator.

Download Version 2.3.4 Download Development Version

Something looks broken? We accept bounties to fix them faster.

Use this extension to show all of the visible pages in a single page content as a link list.

Basic Usage 

Put this block in the desired page content you want to display the link list to:

[<span>[archive]</span>]

Advance Usage 

Sorting 

By default, this extension will display the list of pages sorted ascending by its title. If you add time attribute with value true or a time pattern, then each list item will be completed with page publication time, and list order will be made based on the page publication time:

[<span>[archive time="true"]</span>]

[<span>[archive time="%Y/%m/%d]</span>]

Folder Selection 

You can also limit the list output by determining the folder path relative to .\lot\page. This is useful for creating archive page by category:

---
title: Archive
description: Site archives by category.
author: Taufik Nurrohman
type: Markdown
...

### Articles

[<span>[archive path="/article"]</span>]

### Extensions

[<span>[archive path="/store/extension"]</span>]

Nesting Level 

The maximum recursion value is 4 by default, but you can specify another number. Determining value 0 will deactivate the recursive list feature:

[<span>[archive deep="0"]</span>]