Hi Mark, thanks for your reply.
This is my first time attempting to write a plugin too. As I mentioned in the initial post, I got this from an existing plugin, PhocaDownload Button Plugin.
It uses jimport('joomla.plugin.plugin') too, and it seems to work fine??
The database stuff... I really dont like it, it was the only way I could get the current frontend template name for the path to the file, because: Factory::getApplication()->getTemplate always returns the Admin template, not the frontend template.
This is something I plan on getting back to, I'm certain there is a better way than going to the database.
The plugin currently works, no errors of any kind displayed. Just the modal window is always empty no matter what I try to pass to: $button->content
I tried everything I could think of, including lots of ChatGPT's suggestions to "inject" the content into the modal window, but nothing worked. I am completely lost with this one.
This is my first time attempting to write a plugin too. As I mentioned in the initial post, I got this from an existing plugin, PhocaDownload Button Plugin.
It uses jimport('joomla.plugin.plugin') too, and it seems to work fine??
The database stuff... I really dont like it, it was the only way I could get the current frontend template name for the path to the file, because: Factory::getApplication()->getTemplate always returns the Admin template, not the frontend template.
This is something I plan on getting back to, I'm certain there is a better way than going to the database.
The plugin currently works, no errors of any kind displayed. Just the modal window is always empty no matter what I try to pass to: $button->content
I tried everything I could think of, including lots of ChatGPT's suggestions to "inject" the content into the modal window, but nothing worked. I am completely lost with this one.
Statistics: Posted by joom-rookie — Sun Apr 21, 2024 12:59 am