nglasl\misdirection\SiteTreeMisdirectionExtension
This extension provides vanity mapping directly from a page, and automatically creates the appropriate link mappings when replacing the default automated URL handling.
@author Nathan Glasl <nathan@symbiote.com.au>
Synopsis
class SiteTreeMisdirectionExtension
extends DataExtension
{
- // members
- private static array $has_one = ;
- // methods
- public void updateSettingsFields()
- public void validate()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void onAfterDelete()
- public void regulateMappings()
- public void recursiveMapping()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
-
$has_one
This provides link mapping customisation directly from a page.
Methods
public
- onAfterDelete() — Determine whether link mappings need to be updated when removing this page.
- onAfterWrite() — Update link mappings when replacing the default automated URL handling.
- onBeforeWrite() — Update the corresponding vanity mapping.
- recursiveMapping() — Recursively create link mappings for any children.
- regulateMappings() — Purge any link mappings that point back to the same page.
- updateSettingsFields()
- validate()