Skip to content

blanquerna/yellow-draft

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deutsch   English   Svenska

Draft 0.8.17

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 with the status:draft filter for draft pages. 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.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%