Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author icc0rz

    (@icc0rz)

    Hello!
    Currently there’s no parsing of shortcodes. What kind of shortcode are you thinking of putting in, and in which content type?

    You could do this in a hacky way by just looking for the shortcode in the string returned by 'jsonContent' => $core->filterParameters($content) in class-h5p-plugin.php, line ~581, using has_shortcode or something.

    I’m sure this could be a great idea in some use-cases, but be aware that if you are to export/download the h5p, the shortcode will not be replaced when uploaded to a new site.

    Thread Starter mbrowncap

    (@mbrowncap)

    I was looking to use accordion/toggle type of short codes within the image hotspots content type to organize links. (I’d be using the image as a navigational tool of sorts)
    It is not a necessity for the use I’m envisioning, I was just curious about it. Thanks for the quick and thorough response. I may give the workaround a try when I get a chance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Make shortcodes work in H5P’ is closed to new replies.