Skip to content

pftnhr/yellow-lastedit

Repository files navigation

Lastedit 0.9.1

Shows the last modification date.

Screenshot

How to install the extension

Download ZIP file and copy it into your system/extensions folder. Learn more about extensions.

How to show the last modification date.

Create a paragraph that shows the last modification date if it is at least one day after publishing date.

This extensions outputs following HTML code:

<p class="lastedit">Last edited: YYYY-MM-DD</p>

The date format depends on your settings in yellow-system.ini.

Appearance

You can influence the appearance of the paragraph by adapting the file system/extensions/lastedit.css to your needs.

Examples

lastedit as shortcut

[lastedit]

lastedit with custom text

[lastedit "Custom text"]

You can also integrate it in your layout files with

<?php echo $this->yellow->page->getExtraHtml("lastedit") ?>

Settings

The following setting can be configured in file system/extensions/yellow-language.ini:

LasteditText = default text

Developer

Robert Pfotenhauer. Get help.