VirtualPage
class VirtualPage extends Page (View source)
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..
Properties
public static | $virtualFields |
Methods
For VirtualPage, add a canonical link tag linking to the original page See TRAC #6828 & http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139394
Return true if we can delete this page from the live site, which is different from can we publish it.
Returns true if is page is publishable by anyone at all Return false if the source page isn't published yet.
Ensure we have an up-to-date version of everything.
Allow attributes on the master page to pass through to the virtual page
Allow attributes on the master page to pass through to the virtual page
Pass unrecognized method calls on to the original data object
Overwrite to also check for method on the original data object
Return the "casting helper" (a piece of PHP code that when evaluated creates a casted value object) for a field on this object.
Details
getVirtualFields()
Generates the array of fields required for the page type.
SiteTree
CopyContentFrom()
No description
setCopyContentFromID($val)
No description
ContentSource()
No description
string
MetaTags(bool $includeTitle = true)
For VirtualPage, add a canonical link tag linking to the original page See TRAC #6828 & http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139394