Re-usable media/com_content/js/admin-articles-default-batch-footer.js #34980
joomdonation
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
yes /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->getRegistry()->addExtensionRegistryFile('com_content'); // <- Add com_content assets to registry, manually
$wa->useScript('com_content.admin-articles-batch'); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The above mentioned script is written to use for com_content only. Can it somehow, be used for other components such as com_banners, com_contacts....? Currently, in these components, we still use inline JS. Ping @dgrammatiko @Fedik for help.
Beta Was this translation helpful? Give feedback.
All reactions