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