SproutCMS

This is the code documentation for the SproutCMS project

function pageattr()

Register a type for an extra page

Usage

void Register::pageattr ( string $name , string $label [, string $editor ] );

Arguments

  1. string $name
    Name of the attribute (lowercase, no spaces), e.g 'sprout.lang'
  2. string $label
    Human-readable label for the attribute, e.g. 'Language'
  3. string $editor = Sprout\\Helpers\\AttrEditorTextbox
    Class name of the AttrEditor used to edit the attribute. If not specified using a
           namespace, the 'Sprout\Helpers' namespace is assumed.

Return value

  • void