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
Link()

No description

public
string
CMSEditLink()

No description

Details

No description

Return Value

string

Absolute URL to the end-user view for this record. Example: http://mysite.com/my-record

No description

Return Value

string

Absolute URL to the CMS-author view. Should point to a controller subclassing LeftAndMain. Example: http://mysite.com/admin/edit/6