\CleanLinksExtension
Provides your SiteTree class with has_many links feature.
It uses CleanLinks.
Add this extension to a SiteTree instance
by adding this to your _config.php:
Object::add_extension('Page', 'CleanLinksExtension');
- Author: arillo
Synopsis
class CleanLinksExtension
extends DataExtension
{
- // members
- private static array $has_many = ;
- // methods
- public void updateCMSFields()
- public DataList Links()
- public bool MoreLinksThan()
Hierarchy
Extends
- DataExtension
Members
private
- $has_many
Methods
public
- Links() — Getter for the attached links.
- MoreLinksThan() — Tests if the count of links is higher than $num.
- updateCMSFields()