Mecha CMS

Add extra functionality to the core engine.

User

Author: Taufik Nurrohman · 184 Views

Tweet

Rich user data.

Download Latest Version

Without User Extension 

The page:

---
title: Page Title
author: Taufik Nurrohman
...

Page content.

The property call:

<?php echo $page->author; ?>

With User Extension 

The page:

---
title: Page Title
author: @ta-tau-taufik
...

Page content.

The user file as lot\user\ta-tau-taufik.page:

---
link: http://example.com
author: Taufik Nurrohman
...

Page content.

The property call:

<a href="<?php echo $page->author->link; ?>" id="<?php echo $page->author->key; ?>">
  <?php echo $page->author; ?>
</a>

or:

<?php echo $page->author; ?>