Skip to content

Commit

Permalink
wam update for assetjson
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsguides committed Apr 14, 2024
1 parent 02a5ede commit bbcb97a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/system/autoscrollspy/autoscrollspy.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public function onContentBeforeDisplay($context, &$article, &$params, $limitstar
$app = Factory::getApplication();
$wam = $app->getDocument()->getWebAssetManager();
$webAssetReg = $wam->getRegistry();
$webAssetReg->addRegistryFile('media/plg_system_autoscrollspy/joomla.asset.json');
//$webAssetReg->addRegistryFile('media/plg_system_autoscrollspy/joomla.asset.json');
$webAssetReg->addExtensionRegistryFile('plg_system_autoscrollspy');
$plugin_path = URI::base().'plugins/system/autoscrollspy';
$wam->useStyle('plg_system_autoscrollspy.default');
if($enable_scrollspy == 1){
Expand Down
1 change: 1 addition & 0 deletions plugins/system/autoscrollspy/autoscrollspy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
label="PLG_SYSTEM_AUTO_SCROLLSPY_FLOATPANEL_COLLAPSE_TOGGLER_TEXT"
description="PLG_SYSTEM_AUTO_SCROLLSPY_FLOATPANEL_COLLAPSE_TOGGLER_TEXT_DESC"
default=""
showon="render_location:floatpanel"
/>

</fieldset>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PLG_SYSTEM_AUTO_SCROLLSPY_LEVEL1_SELECTOR_DESC="The selector for the level 1 hea
PLG_SYSTEM_AUTO_SCROLLSPY_LEVEL2_SELECTOR="Level 2 Selector"
PLG_SYSTEM_AUTO_SCROLLSPY_LEVEL2_SELECTOR_DESC="The selector for the level 2 headings. Default is h3."
PLG_SYSTEM_AUTO_SCROLLSPY_ENABLE_SCROLLSPY="Enable Scrollspy"
PLG_SYSTEM_AUTO_SCROLLSPY_ENABLE_SCROLLSPY_DESC="Enable the scrollspy functionality. Default is Yes."
PLG_SYSTEM_AUTO_SCROLLSPY_ENABLE_SCROLLSPY_DESC="Enable the scrollspy functionality. Default is Yes. If off, the module will just display the table of contents without scrollspy features."
PLG_SYSTEM_AUTO_SCROLLSPY_MIN_COUNT = "Minimum number of headings"
PLG_SYSTEM_AUTO_SCROLLSPY_MIN_COUNT_DESC = "The minimum number of level 1 or 2 headings required before a table of contents is generated. Default is 3."
PLG_SYSTEM_AUTO_SCROLLSPY_TOP_IS_TITLE = "Top element is article title"
Expand Down

0 comments on commit bbcb97a

Please sign in to comment.