PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar marcorensch
marcorensch
9 Jan 2024

Adds separators as submenu's items for Components.

Pull Request for Issue #41123 . And reflect change as in #42588 for 5.0

Summary of Changes

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.

Testing Instructions

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.

Actual result BEFORE applying this Pull Request

Nothing happened. 'type=separator' is ignored and replaced with 'component'. It will render the content in the XML Defintion like "--" for example.

Expected result AFTER applying this Pull Request

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

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

avatar marcorensch marcorensch - open - 9 Jan 2024
avatar marcorensch marcorensch - change - 9 Jan 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jan 2024
Category Libraries
avatar Quy
Quy - comment - 10 Jan 2024

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.

avatar Quy Quy - close - 10 Jan 2024
avatar Quy Quy - change - 10 Jan 2024
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

Add a Comment

Login with GitHub to post a comment