Skip to content

Support for draft pages.

License

Notifications You must be signed in to change notification settings

annaesvensson/yellow-draft

Repository files navigation

Deutsch   English   Svenska

Draft 0.9.1

Support for draft pages.

Screenshot

How to install an extension

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

How to make a draft page

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.

How to find draft pages

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.

Examples

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") ?>

Developer

Anna Svensson. Get help.

About

Support for draft pages.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages