Support for draft pages.
Download ZIP file and copy it into your system/extensions
folder. Learn more about extensions.
Set Status: draft
in the page settings at the top of a page. The page will no longer be visible. You can continue to edit the page in a web browser and on your computer.
You can use the search extension. Once you're logged in with your user account, you can search for status:draft
. This allows you to find all draft pages.
Content file with draft status:
---
Title: Example page
Status: draft
---
This page is not visible on your website.
Content file with draft status for the wiki:
---
Title: Wiki example
Layout: wiki
Tag: Example
Status: draft
---
This page is not visible in your wiki.
Content file with draft status for the blog:
---
Title: Blog example
Published: 2013-04-07
Author: Datenstrom
Layout: blog
Tag: Example
Status: draft
---
This page is not visible in your blog.
Layout file for showing all draft pages:
<?php $this->yellow->layout("header") ?>
<div class="content">
<div class="main" role="main">
<h1><?php echo $this->yellow->page->getHtml("titleContent") ?></h1>
<?php $pages = $this->yellow->content->index(true, true)->filter("status", "draft") ?>
<?php $this->yellow->page->setLastModified($pages->getModified()) ?>
<ul>
<?php foreach ($pages as $page): ?>
<li><?php echo $page->getHtml("title") ?></li>
<?php endforeach ?>
</ul>
</div>
</div>
<?php $this->yellow->layout("footer") ?>
Anna Svensson. Get help.