CMSPreviewable
interface CMSPreviewable (View source)
Interface to provide enough information about a record to make it previewable through the CMS. It uses the record database ID, its "frontend" and "backend" links to link up the edit form with its preview.
Also used by SilverStripeNavigator to generate links - both within the CMS preview, and as a frontend utility for logged-in CMS authors in custom themes (with the $SilverStripeNavigator template marker).
Methods
public
string
PreviewLink(string $action = null)
Determine the preview link, if available, for this object.
Details
string
PreviewLink(string $action = null)
Determine the preview link, if available, for this object.
If no preview is available for this record, it may return null.
string
getMimeType()
To determine preview mechanism (e.g. embedded / iframe)
string
CMSEditLink()
No description