Object objPage

From Snapp CMS Developer Documentation

Jump to: navigation, search

The page object contains all the information about a page within the sitemap. It is generally used with in the sitemap class.

Usage in CMS

Example

$cms->page->id;

$cms->page->title;

$cms->page->module;

$cms->page->module_id;

Object cms->page

Available Variables

Config Options Description
id : int Current Pages Sitemap ID
parent_id : int ID of Parent Page in Sitemap
title : string Title of Page
page_order : int Order of Page within current node of sitemap
module : string Unique Module Name to render this page with
module_id : int ID of the piece of content to specific to the specified module to load from the database and pass to the module class
sidemenu : int What part of the sitemap the user want to render as a sub menu specific to this page
published : int Flag to determine if the is marked as published and is able to be displayed to end users
alt_title : string Alternate Page Title if Difference from Menu Title
template : string The Template the module is going to use to render this page
hint : string Tool tip hint for links to this page
ssl : bool Determine if this page requires a ssl connection
target : string Target for a link to this page eg Open in New Window or Open in existing Window
Personal tools
Core Components
Standalone Installs