Page HTMLPage AdministrationPage contentBlueprintsPages

public class contentBlueprintsPages extends AdministrationPage

content.blueprintspages.php #16

Developers can create new Frontend pages from this class. It provides an index view of all the pages in this Symphony install as well as the forms for the creation/editing of a Page

Properties

mixed $_errors

Methods

void __actionDelete(mixed $pages, mixed $redirect, string $context, integer $page_id, array $types)

Just before the page's types are saved into tbl_pages_types. Use with caution as no further processing is done on the $types array to prevent duplicate $types from occurring (ie. two index page types). Your logic can use the PageManger::hasPageTypeBeenUsed function to perform this logic.

Parameters
  • $context string'/blueprints/pages/'

  • $page_id integerThe ID of the Page that was just created or updated

  • $types arrayAn associative array of the types for this page passed by reference.

See Also
void __actionEdit()
void __actionIndex(string $context, XMLElement $form, array $fields, array $errors)

After all Page related Fields have been added to the DOM, just before the actions.

Parameters
  • $context string'/blueprints/pages/'

void __actionNew(string $context, string $file)

Just after a Page Template has been edited and written to disk

Parameters
  • $context string'/blueprints/pages/template/'

  • $file stringThe path to the Page Template file

void __actionTemplate(string $context, array $checked)

Extensions can listen for any custom actions that were added through AddCustomPreferenceFieldsets or AddCustomActions delegates.

Parameters
  • $context string'/blueprints/pages/'

  • $checked arrayAn array of the selected rows. The value is usually the ID of the the associated object.

void __viewEdit()
void __viewIndex()
void __viewNew()
void __viewTemplate(string $context, array $options)

Allows an extension to modify the existing options for this page's With Selected menu. If the $options parameter is an empty array, the 'With Selected' menu will not be rendered.

Parameters
  • $context string'/blueprints/pages/'

  • $options arrayAn array of arrays, where each child array represents an option in the With Selected menu. Options should follow the same format expected by Widget::__SelectBuildOption. Passed by reference.

void insertBreadcrumbsUsingPageIdentifier(mixed $page_id, bool $preserve_last)
void listAllPages(str $separator)
static boolean typeUsed(integer $page_id, string $type)

Returns boolean if a the given $type is set for the given $page_id.

Parameters
  • $page_id integerThe ID of the Page to check

Returns

True if the type is used, false otherwise

See Also
Deprecated

This will be removed in Symphony 2.4. The preferred function is PageManger::hasPageTypeBeenUsed

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details