User tests: Successful: Unsuccessful:
Adds separators as submenu's items for Components.
Pull Request for Issue #41123 . And reflect change as in #42588 for 5.0
Alters the 'type' attribute for sub-menus when installing a Component to allow for separator lines to be added to the sub menu of a Component. For use when you need to break up or group sub-menu items of a Component.
In the manifest .xml file for a components you can indicate the placement of the separator by adding the element
-- between a set of elements. ---The processing to read and render the separator already exists in the Joomla core, all that was missing was the ability to specify the 'type' of separator when installing a component. The rendering of the separator will either use the characters defined between the and elements or the characters are stripped and the separator is rendered as a line with CSS.
Add the
-- element to the manifest .xml file of a component and Install the component in an instance of Joomla.If there is only one separator you don't need to set an alias. If you want to add multiple you need to set an unique alias for the separators.
Nothing happened. 'type=separator' is ignored and replaced with 'component'. It will render the content in the XML Defintion like "--" for example.
Expand your Component name under the Admin area Component Menu on the left and you should see the separator(s) displayed as a sub menu item(s).
In the #__menu table the entry for your separator will have a field of type with the value 'separator' and the alias will be the current date Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-01-10 04:00:07 |
Closed_By | ⇒ | Quy | |
Labels |
Added:
PR-5.0-dev
|
Thank you for the PR. Once PR #42588 is merged in 4.4, it will be upmerged into v5, thus, this PR is not necessary. Closing.