Forum


Unable to restrict access to course based on lesson completion

brett vac
84%
Posts: 84
TF Learn
November 25, 2024

Hello,

Using TF Learn I would like to restrict access to a lesson to only those who have completed the previous lesson - completion is with score 100 on the test.

Under TF Learn > Lesson > Options tab, I click the green arrow "Restrict Access" then Choose Lesson completion. It asks me for a value. I am working on lesson 2, so naturally I put 1. After clicking save and returning to the options tab, the criteria I selected above disappears.

The expected result would be that the options I selected remain after saving, but they are deleted.

Thanks & looking forward to the bug fix.

Joomla Fry
100%
Posts: 952
November 26, 2024

Thank you for informing about this issue.

It is now resolved. Please update the component.

brett vac
84%
Posts: 84
November 27, 2024

Hello, thank you for the resolution.

However I need to translate the text "This lesson will be available after completing"

Is there a language constant for this string?

Thanks,

-Brett

Joomla Fry
100%
Posts: 952
November 28, 2024

Please update the the component.

We have added language string for this - COM_TFLEARN_RESTRICT_LESSON

Thank you

brett vac
84%
Posts: 84
December 03, 2024

Hello,

Unfortunately there is a bug.  After updating to TF Learn 2.4.6 and TF Library 3.5.1 and going to TF Learn > Lessons

I now get:

Class "Joomla\CMS\Form\Field\ModalSelectField" not found 

And here is the debug:

#     Function     Location1     ()     JROOT/libraries/techfry/src/Field/RecordselectField.php:332     include()     JROOT/libraries/vendor/composer/ClassLoader.php:5713     Composer\Autoload\includeFile()     JROOT/libraries/vendor/composer/ClassLoader.php:4284     Composer\Autoload\ClassLoader->loadClass()     JROOT/libraries/src/Autoload/ClassLoader.php:595     Joomla\CMS\Autoload\ClassLoader->loadClass()      6     class_exists()     JROOT/libraries/src/Form/FormHelper.php:2247     Joomla\CMS\Form\FormHelper::loadClass()     JROOT/libraries/src/Form/FormHelper.php:1368     Joomla\CMS\Form\FormHelper::loadType()     JROOT/libraries/src/Form/FormHelper.php:789     Joomla\CMS\Form\FormHelper::loadFieldType()     JROOT/libraries/src/Form/Form.php:145210     Joomla\CMS\Form\Form->loadField()     JROOT/libraries/src/Form/Form.php:43511     Joomla\CMS\Form\Form->getGroup()     JROOT/layouts/joomla/form/field/subform/repeatable-table.php:6312     include()     JROOT/libraries/src/Layout/FileLayout.php:12813     Joomla\CMS\Layout\FileLayout->render()     JROOT/libraries/src/Form/Field/SubformField.php:27414     Joomla\CMS\Form\Field\SubformField->getInput()     JROOT/libraries/src/Form/FormField.php:104215     Joomla\CMS\Form\FormField->renderField()     JROOT/libraries/src/Form/Form.php:55816     Joomla\CMS\Form\Form->renderFieldset()     JROOT/libraries/techfry/src/View/Back/TfViewForm.php:23717     TechFry\Library\View\Back\TfViewForm->render_fieldset()     JROOT/libraries/techfry/src/View/Back/TfViewForm.php:17118     TechFry\Library\View\Back\TfViewForm->add_tab_form()     JROOT/administrator/components/com_tflearn/tmpl/lesson/edit.php:3019     include()     JROOT/libraries/src/MVC/View/HtmlView.php:41520     Joomla\CMS\MVC\View\HtmlView->loadTemplate()     JROOT/libraries/src/MVC/View/HtmlView.php:20321     Joomla\CMS\MVC\View\HtmlView->display()     JROOT/libraries/techfry/src/View/Back/TfView.php:11622     TechFry\Library\View\Back\TfView->display()     JROOT/libraries/techfry/src/View/Back/TfViewForm.php:5723     TechFry\Library\View\Back\TfViewForm->display()     JROOT/libraries/src/MVC/Controller/BaseController.php:66024     Joomla\CMS\MVC\Controller\BaseController->display()     JROOT/administrator/components/com_tflearn/src/Controller/DisplayController.php:1925     TechFry\Component\TfLearn\Administrator\Controller\DisplayController->display()     JROOT/libraries/src/MVC/Controller/BaseController.php:69326     Joomla\CMS\MVC\Controller\BaseController->execute()     JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:14327     Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()     JROOT/libraries/src/Component/ComponentHelper.php:36128     Joomla\CMS\Component\ComponentHelper::renderComponent()     JROOT/libraries/src/Application/AdministratorApplication.php:14329     Joomla\CMS\Application\AdministratorApplication->dispatch()     JROOT/libraries/src/Application/AdministratorApplication.php:18630     Joomla\CMS\Application\AdministratorApplication->doExecute()     JROOT/libraries/src/Application/CMSApplication.php:29331     Joomla\CMS\Application\CMSApplication->execute()     JROOT/administrator/includes/app.php:6132     require_once()     JROOT/administrator/index.php:32 

Looking forward to the bug fix. Thank you.

brett vac
84%
Posts: 84
December 06, 2024

Never mind...it works now after upgrading to Joomla! 5.2.2.

Omar Foda
1%
Posts: 1
December 12, 2024

i have this error

Class "Joomla\CMS\Form\Field\ModalSelectField" not found 

Looking forward to the bug fix. Thank you.

Joomla Fry
100%
Posts: 952
December 15, 2024

Hello

Is it possible to update Joomla to 5.2 version?

Login to Reply