Skip to content

How to recreate the old Vimeo plugin/extension? #548

Discussion options

You must be logged in to vote

Hi,

your code still misses some API updates. From what I can see you at least should change the default setting in the onload function, just replace config->setDefault with system->setDefault, e.g.

    // Handle initialisation
    public function onLoad($yellow) {
        $this->yellow = $yellow;
        $this->yellow->system->setDefault("vimeoStyle", "flexible");
    }

The function onParseContentBlock no longer is being used, instead use onParseContentShortcut.

    // Handle page content of shortcut
    public function onParseContentShortcut($page, $name, $text, $type) {
        $output = null;
        if ($name=="vimeo" && ($type=="block" || $type=="inline")) {
            list($id, $s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by annaesvensson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #548 on December 27, 2020 12:14.