$url = 'https://api.github.com'; $options = []; $data = []; $http = JHttpFactory::getHttp(new JRegistry($options)); $response = $http->get($url, $data); echo $response->body; Reference : https://issues.joomla.org/tracker/joomla-cms/20537
In this tutorial you can see how to use font awesome in Joomla 4 module. Please check code : [code] //https://docs.joomla.org/J4.x:Web_Assets //Font Awesome $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); $wa->registerStyle('joomla-fontawesome', 'system/joomla-fontawesome.min.css', [], [],... read more →
[code] [/code] Reference : https://stackoverflow.com/questions/38424286/joomla-jtext
You can use send any js script to footer. Code : [code] $doc->addScript($modulePath.'js/currency.js', array(), array("defer" => "defer")); $options=array( "type"=>"text/javascript", "defer"=>true, "async"=>false, "depends"=>array("jquery","jquery-ui"), "provides"=>"jquery-animation" ); JFactory::getDocument()->addScript($url, $options); [/code] Reference url :... read more →
Joomla 4 is catching up with the new (and not so new) web technologies, technologies that are now widely supported by most modern browsers. One of these techniques is Web... read more →
If your are a Joomla developer sometimes you encounter a task which needs to produce jQuery Ajax call in order to add some additional content to a Joomla article page... read more →
First add this : defined('_JEXEC') or die(); ... use Joomla\CMS\HTML\HTMLHelper; ... Then, wherever you need it: HTMLHelper::_('jquery.framework');
I have 3 fields defined in my XML file like so: JYESJNO JYESJNO JYESJNO Solution : You can chain the attribute values of showon, using [AND], like so: showon="field1:1[AND]field2:1" Adding... read more →