Select your language


Position of js scripts or css files in head using Web Assets method ?

When using Web Assets basic method like this: ``` $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); $wa->registerScript('bar', 'com_example/bar.js', [], ['defer' => true], ['core']); // And use it later $wa->useScript('bar'); ``` I noticed that I couldn't really control the position of js scripts (or css files) in the listing deployed in head when displaying page. Sometimes, it could be necessary, eg when I want my css file to load AFTER template.min.css With ```HTMLHelper```, js scripts and css files are (almost) always positioned by the end of the listing, as I wish. ``` HTMLHelper::_('script', ... ``` or ``` HTMLHelper::_('stylesheet',... ``` Do I miss something somewhere ? Other question, related: Is it mandatory to create a joomla.asset.json file in media/myfiles when I just want to add some js or css to an existing extension?

ghazal 2021-11-30T12:26:47Z

Content - Email Cloaking removes CSS from Link

### Steps to reproduce the issue Creat Link with Mailto and add CSS for Button ### Expected result Button in Frontend ### Actual result CSS removed, no Button ### System information (as much as possible) Joomla 4.0.4 ### Additional comments deactivate Content - Email Cloaking the Button shows up

nikzolahr 2021-11-30T12:14:16Z

method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given (creating article)

### Steps to reproduce the issue -Start to create new article (do not save it yet) -Choose a category for new article -URL while doing this action : https://mysite/administrator/index.php?option=com_content&view=article&layout=edit ### Expected result New article becomes assigned to the chosen category ### Actual result Joomla multicolor splash screen lightbox animation pops up for 2-3 seconds backend reports error : "method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given" ### System information (as much as possible) PHP 8 Joomla 4.0.4 ### Additional comments NB, i've set PageBuilderCK to be my main article editor, but the issue happens when this is not set this way too... Stack Trace: Call stack # Function Location 1 () JROOT/plugins/system/pagebuilderck/pagebuilderck.php:77 2 method_exists() JROOT/plugins/system/pagebuilderck/pagebuilderck.php:77 3 plgSystemPagebuilderck->onContentPrepareForm() JROOT/libraries/src/Plugin/CMSPlugin.php:285 4 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486 5 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111 6 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/libraries/src/MVC/Model/FormBehaviorTrait.php:179 7 Joomla\CMS\MVC\Model\FormModel->preprocessForm() JROOT/administrator/components/com_content/src/Model/ArticleModel.php:1105 8 Joomla\Component\Content\Administrator\Model\ArticleModel->preprocessForm() JROOT/libraries/src/MVC/Model/FormBehaviorTrait.php:117 9 Joomla\CMS\MVC\Model\FormModel->loadForm() JROOT/administrator/components/com_content/src/Model/ArticleModel.php:490 10 Joomla\Component\Content\Administrator\Model\ArticleModel->getForm() JROOT/libraries/src/MVC/View/AbstractView.php:146 11 Joomla\CMS\MVC\View\AbstractView->get() JROOT/administrator/components/com_content/src/View/Article/HtmlView.php:87 12 Joomla\Component\Content\Administrator\View\Article\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:692 13 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_content/src/Controller/DisplayController.php:63 14 Joomla\Component\Content\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:730 15 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:146 16 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389 17 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143 18 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186 19 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278 20 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63 21 require_once() JROOT/administrator/index.php:32

aftertaf 2021-11-30T11:35:47Z


All That You Need To Know About Joomla Development

Joomla is a content management system (CMS) that allows you to create websites and impactful online applications. Business 2 Community 1 month ago

Joomla turns 16 and looks back on the evolution of the CMS market

Joomla means “all together”. From the founding of Joomla we have taken pride in reducing the barriers to entry. We removed the barrier of cost,... TechRadar 3 weeks ago

Best WordPress Alternatives for 2021

Joomla Content Management System (CMS). When people mention WordPress alternatives, Joomla is usually the first that comes to mind. Like... HTML Goodies 4 weeks ago

Руководство по новой функции Joomla 4 – Процессы ...

17 августа 2021 года у CMS Joomla день рождения. В этот же день вышла версия Joomla 4.0. В этой статье пойдет речь об одной из самых... 1 day ago

Dual vulnerability combo in popular CMS Joomla could lead ...

Patch issued for one flaw, but Joomla maintainers contest the severity of a second bug. Dangerous duo of Joomla security bugs could lead to... PortSwigger Jun 8, 2021