Ionize User Guide Version 0.9.6


Page views

Basically, a page view displays the navigation, the current page content (title, medias, etc.) and loops through the articles linked to the current page.

A page view can also displays articles from another page, even this other page isn't part of the menu.

A page view can also include other views, called "partial" views.

Displaying page's data

Page View sample code

<!-- Includes the view "header.php" -->
<ion:partial view="header" />

    <!-- Page title -->
    <ion:title tag="h2" />
    
    <!-- Articles -->
    <ion:articles>

        <!-- Displays the article with it's view -->
        <ion:article />

    </ion:articles>  
  
<!-- Includes the view "footer.php" -->
<ion:partial view="footer" />

Creating a page view and link it to a page

  1. Use a text editor and save the file with the name you wish in the /themes/your_theme/views/your_page_view.php
  2. Activate the view as a "page" view : see Activate pages and articles views
  3. Create a page : The view will be available in the View dropdown of the page panel