User tests: Successful: Unsuccessful:
Content, Contact and Newsfeeds components don't load Bootstrap collapse asset and expanding sub-categories is broken.
We need to load bootstrap.collapse
asset like it's currently done for com_search/tmpl/default-form.php
Use any non-native template, i.e. Gantry.
See child sub-categories in com_content, com_contact and com_newsfeeds category view, click "plus" icon to expand sub-categories.
Nothing happens.
Sub-categories are expanded.
No.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End com_contact com_content com_newsfeeds |
OK, but where Bootstrap Collapse is loaded?
it isnt because it is using a different script as shown
@Denitz As Brian pointed out, we use our own accordion script. If I remember correctly, all you need to do is using the same code which we are having in com_content https://github.com/joomla/joomla-cms/blob/4.1-dev/components/com_content/tmpl/categories/default_items.php#L35-L44 for these components and it will work as expected.
Labels |
Added:
?
|
Category | Front End com_contact com_content com_newsfeeds | ⇒ | Front End com_content |
@brianteeman Yes, you are right! Actually
components/com_content/tmpl/categories/default_items.php
components/com_contact/tmpl/categories/default_items.php
components/com_newsfeeds/tmpl/categories/default_items.php
uses <button id=category-btn-..
with com_categories.shared-categories-accordion
script.
No changes here.
But
components/com_content/tmpl/category/blog_children.php
components/com_content/tmpl/category/default_children.php
use <a data-bs-toggle="collapse"...
without HTMLHelper::_('bootstrap.collapse')
, I added Bootstrap script load.
Or we should re-build these two layouts in components/com_content/tmpl/category
to use <button id=category-btn-..
with com_categories.shared-categories-accordion
script?
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-06-08 05:31:54 |
Closed_By | ⇒ | Denitz | |
Labels |
Added:
?
|
This can not be correct. See
joomla-cms/components/com_contact/tmpl/categories/default.php
Lines 19 to 22 in 6e71102
joomla-cms/build/media_source/com_categories/joomla.asset.json
Lines 7 to 14 in 6e71102
https://github.com/joomla/joomla-cms/blob/4.1-dev/build/media_source/com_categories/js/shared-categories-accordion.es6.js