Forum


Show TF Learn content inside of a module

brett vac
92%
Posts: 92
TF Learn
March 06, 2025

Hello! I am wondering how I can put TF Learn content inside of a module or article. Specifically, I would like to output the content of, say: mysite.com/component/tflearn/?view=path&id=1 Inside a module.

I read online that I can put this inside an Iframe. Is that an option?

Thanks,

brett vac
92%
Posts: 92
March 09, 2025

It seems the proper way to do this would be to create a custom module where the module's tmpl/default.php file contains the code to display the output from TF Learn paths.

brett vac
92%
Posts: 92
March 13, 2025

All right, after a Lot of vibe coding, and going through the Module tutorial (AI only knows how to code Joomla! 3 modules it seems) I managed to get a module working that displays just the path of a specific course:https://daloonix.cloudaccess.host/index.php/courses/paths

Now when the user is viewing all of their courses or their scores, they can simply click on the module to jump to a lesson they have access to. Neat.

I have no idea how to get the language strings to work without including them in a separate language file, though. Apparently they are imported through a CSV file, which doesn't seem to be a standard way to load languages. If you could share how to load language strings in this way I would be grateful.

brett vac
92%
Posts: 92
March 31, 2025

I published the module to Github if any one is interested in using it

https://github.com/brettvac/TfLearnpath

Login to Reply