Open kernusr opened 4 years ago
Why do not you load jquery and bootstrap, as a library, in your ecosystem for templates, modules and builder?
Something similar to
\Joomla\CMS\HTML\HTMLHelper::_('jd.jquery);
\Joomla\CMS\HTML\HTMLHelper::_('jd.bootstrap);
This will check the connection of libraries and eliminate duplication of them in the code
Hi @kernusr this is a known issue we are working to fix.
For the moment you can comment it the following file to avoid the conflict. https://github.com/joomdev/JD-Builder/blob/master/plg_jdbuilder/libraries/jdpagebuilder/Builder.php#L909-L910
Well, I can always comment on the code But what do you think about packing bootstrap and jgery in a separate library that you will use in all your extensions Here is an example of code that installs the library separately from the package. This code can be used in all extensions to check and install dependencies https://github.com/Quantum-Manager/pkg_quantummanager/blob/master/script.php#L214
An example of how to pack a library for a joomla can be found in this project https://github.com/master3-blank-template/UIkit3-Joomla-library The author made a uikit as a joomla library and sets it as a dependency for his template
Maybe you discuss this option and I can help you? I can prepare PR, but I must know that you will accept it, so as not to waste time
Thank you... These are very helpful and like I said, we already have the plan to fix it in the near future.
I don't know the full details about how the code would be written so, I'd recommend not working on the PR. But, I'll post back once we have this done and have you take a second look at it.
When I embed a JDBuilder module in a page, it connects jquery and noconflict after loading scripts from a template. It breaks the work with bootstrap Because jquery library must be connected before the bootstrap script![sss](https://user-images.githubusercontent.com/16020878/80414189-4f6c4d80-88d9-11ea-82e5-d0818657e5fe.png)