\ExternalContentPage
A Page type that lets you pull content through from any arbitrary external content source. At some point soon, this might change to behave more like a virtual page... Might be necessary in the future
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
- License: http://silverstripe.org/bsd-license/
Synopsis
class ExternalContentPage
extends Page
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private ExternalContentItem $requestedItem;
- // methods
- public void getCMSFields()
- public void RelativeLink()
- public void LinkFor()
- public void setRequestedItem()
- public DataObject ContentItem()
- public ArrayList Children()
Hierarchy
Extends
- Page
Members
private
- $db
- $has_one
- $requestedItem
—
ExternalContentItem
Cache the requested item so that repeated calls to this method doesn't make a bunch of extra requests
Methods
public
- Children() — Return the children of this external content item as my children
- ContentItem() — Get the external content item
- LinkFor()
- RelativeLink() — When linking to this external content page, return a URL that'll let you view the external content item directly
- getCMSFields()
- setRequestedItem()