Skip Navigation
Remove

Page Type Administrative Notes

May 4, 2011 at 12:11 pm
By Matt Ryan

It has long been an issue that custom page types were opaque to Reason users: what they did, how one managed their data. We're proud to announce one step towards clarifying these questions for Reason users: Page Type Notes.

Page Type Notes are html snippets that can be added to page types. Pages that have this page type will display these notes immediately below the page type picker in the page's content manager.

For example, if you had a page type that displayed dancing bunnies, it might look like this in page_types_local.php:

'dancing_bunnies' => array(
'main_post' => 'dancing_bunnies',
),

If you wish to add a note in the administrative interface to explain what this page does and how to change things, you can now add a note. Here's how:

'dancing_bunnies' => array(
'main_post' => 'dancing_bunnies',
'_meta' => array(
'note' => '<p>This page displays dancing bunnies after any page content.
To manage the bunnies, go to the "Bunnies" tab.</p>',
),
),

This note will then show up in the administrative interface, hopefully helping a site maintainer understand how they can (in this case) add a bunny or do what ever else is necessary on the page. The above code will look like this in the content manager for a dancing_bunnies page:

Note Example Screenshot 

Add a comment

Name*
Comment*
The following fields are not to be filled out. Skip to Submit Button.
Not Comment
(This is here to trap robots. Don't put any text here.)
Not URL
(This is here to trap robots. Don't put any text here.)
Avoid
(This is here to trap robots. Don't put any text here.)