grantus
Active member
I'm trying to set up a bbcode embed but I can't get it to work.
I have my template being included:
Then I have in the advanced options:
I have this set in my class:
My actionIndex method is what returns the file_id that I need (for my file_view template), so is that what is supposed to be $matchedId?
I have my template being included:
Code:
<xf:include template="file_view" />
Then I have in the advanced options:
Code:
URL match callback: path\to\fileview and matchCallback as the method
I have this set in my class:
Code:
public static function matchCallback($url, $matchedId, \XF\Entity\BbCodeMediaSite $site, $siteId) {
}
My actionIndex method is what returns the file_id that I need (for my file_view template), so is that what is supposed to be $matchedId?