Skip to content

schulle4u/yellow-private

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deutsch   English

Private 0.9.1

Support for password-protected 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 private page

Set Status: private and Password in the page settings at the top of a page. The page will no longer be visible and you need to enter the password to access the content. You can continue to edit the page in the web browser and on your computer.

How to find private pages

You can use the search extension. Once you're logged in with your user account, you can search for status:private. This allows you to find all private pages.

Examples

Content file with private status:

---
Title: Private page
Status: private
Password: password
---
This page is private. Add more information here.

Content file with private status for the wiki:

---
Title: Wiki page
Layout: wiki
Tag: Example
Status: private
Password: password
---
This page is private. Add more information here.

Content file with private status for the blog:

---
Title: Blog example
Published: 2013-04-07
Author: Datenstrom
Layout: blog
Tag: Example
Status: private
Password: password
---
This page is private. Add more information here.

Layout file for showing all private 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)->filter("status", "private") ?>
<?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") ?>

Acknowledgements

Thanks to Kanbeq for the initial idea.

Developer

Steffen Schultz. Get help.

About

Support for password-protected pages.

Topics

Resources

License

Stars

Watchers

Forks

Languages