I am a longtime user of fabrik, since Joomla 3.0. I have written many custom applications with Fabrik and many custom templates.
I am currently migrating a project from Joomla 3.x to Joomla 5.2. Everything is going great except the Digsig plugin. I do have custom templates I am using but the actual signature will not render in the details view. I traced this down to to the digsig.js file not being called.
I inserted a very short code block to see if this Javascript was being called under the initialize function
When I use the default bootstrap templates I see the console message but when I use my templates I do not see this message. I decided to try figure out why this was occurring. I took a copy of the default details bootstrap templates to play with. This project "list/form" has 13 groups in it with id numbers 96 - 109. The Digsig component sits in group id 109. If I manually exclude any published group in this form in the default.php file in my copy of the bootstrap templates, then the digsig.js does not get called. I tested this as follows;
The code below will not call the digsig.js file because I excluded group id 96.
This code will work because I included group id 96 BUT it does not matter which is excluded, could be 101, 97, 98, etc...
Can anyone share some insight why the digsig plugin will not load the corresponding Javascript file, making the signature not render, if an unrelated group is excluded from the template?
I am currently migrating a project from Joomla 3.x to Joomla 5.2. Everything is going great except the Digsig plugin. I do have custom templates I am using but the actual signature will not render in the details view. I traced this down to to the digsig.js file not being called.
I inserted a very short code block to see if this Javascript was being called under the initialize function
Code:
define(['jquery', 'fab/element'], function (jQuery, FbElement) {
window.FbDigsig = new Class({
Extends : FbElement,
initialize: function (element, options) {
console.log('we are here');
When I use the default bootstrap templates I see the console message but when I use my templates I do not see this message. I decided to try figure out why this was occurring. I took a copy of the default details bootstrap templates to play with. This project "list/form" has 13 groups in it with id numbers 96 - 109. The Digsig component sits in group id 109. If I manually exclude any published group in this form in the default.php file in my copy of the bootstrap templates, then the digsig.js does not get called. I tested this as follows;
The code below will not call the digsig.js file because I excluded group id 96.
Code:
foreach ($this->groups as $group) :
$this->group = $group;
$validIDS = Array(109);
for($i = 97; $i < 109; $i++) {
array_push($validIDS, $i);
}
if(!in_array($group->id, $validIDS)) { continue; }
This code will work because I included group id 96 BUT it does not matter which is excluded, could be 101, 97, 98, etc...
Code:
foreach ($this->groups as $group) :
$this->group = $group;
$validIDS = Array(109);
for($i = 96; $i < 109; $i++) {
array_push($validIDS, $i);
}
if(!in_array($group->id, $validIDS)) { continue; }
Can anyone share some insight why the digsig plugin will not load the corresponding Javascript file, making the signature not render, if an unrelated group is excluded from the template?