Predefined variables

    Bludit provides a few predefined variables to help developers.

    $content

    The variable $content is an array with all published pages (includes pages and sticky does not include statics). Each page included in the array is a Page Object.

    The array is ordered by date or by position, you can change this behavior in the settings of your system.

    Take a look at the code snippets to know how to work with this variable.

    $page

    The variable $page has the current page when the user is browsing one of them. The variables is a Page Object.

    To be more clear, if the user is browsing the page https://www.example.com/my-dog-rules the current page is my-dog-rules so in the variable you are going to have that page.

    $staticContent

    The variable $staticContent is an array with all static pages. Each page included in the array is a Page Object.

    The array is ordered by position all the time.

    Take a look at the code snippets to know how to work with this variable.

    $pages

    The variable $pages is a Pages Object. This object is to manipulate the database of pages.

    Collaborate with us and edit this page