Skip to content
PageKit extension which allows you to include dynamic fields like current year to your contents.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
CHANGELOG.md
LICENSE
README.md
composer.json
icon.svg
index.php

README.md

Fields

General

Allows you to include dynamic fields like current year to your contents.

Installation

Please install this extension via Pagekit's marketplace.

Basic usage

To include a dynamic field use the Pagekit plugin content anotation:

(fields){"id":"__field__"}

Available fields

Date time fields

(fields){"id":"year"} Outputs the current year, example: 2018

(fields){"id":"date", "format":"..."} Outputs the current date using a custom PHP format.

Server information

(fields){"id":"server", "value":"..."}

Outputs any field value stored in $_SERVER array, for example: SERVER_NAME.

You can’t perform that action at this time.