Bludit v3.0.0 Alpha 5
Pre-release
Pre-release
Many changes in this Alpha version, one of the more important is the title now is stored in the database and not in the main file of the page, only the content is stored in the file index.txt
.
Changes on variables names and object names
All the default object created by Bludit now are lower cases.
$Url
is now$url
$Page
is now$page
$Site
is now$site
The array $pages
with all the content for the homepage now is called $content
.
foreach ($content as $page) {
$page->title();
}
The status
of the content now is called type
.
foreach ($content as $page) {
// Values: published, static, sticky, draft
if ($page->type() == 'static') {
echo 'The page is defined as static';
}
}