Create published_pages.view.php

displays only the published pages!

additional add to the documentation
<h4>Get only published pages</h4>
<br>
<pre class="prettyprint"><?php echo Page::published(); ?></pre>