Class VirtualPage
Virtual Page creates an instance of a page, with the same fields that the original page had, but readonly. This allows you can have a page in mulitple places in the site structure, with different children without duplicating the content Note: This Only duplicates $db fields and not the $has_one etc..
- Page
-
VirtualPage
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
canPublish( mixed $member = null )
We can only publish the page if there is a published source page |
public
|
#
canDeleteFromLive( mixed $member = null )
Return true if we can delete this page from the live site, which is different from can we publish it. |
public
|
#
isPublishable( )
Returns true if is page is publishable by anyone at all Return false if the source page isn't published yet. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
|
public
boolean
|
Magic methods summary
Properties summary
public static
array
|
$icon | |
public static
mixed
|
$virtualFields | |
public static
array
|
$has_one | |
public static
array
|
$db |
Comments
Use the Silverstripe Forum to ask questions.