? ? Failure

User tests: Successful: Unsuccessful:

avatar akshitrattan
akshitrattan
12 Jan 2022

Pull Request for Issue #36597 .

Summary of Changes

override the renderButton() method in ToolbarButton to remove the limitations of FileLayout Instantiation in modules tab

Testing Instructions

Create a module that uses button layout from a component
if you are able to access the component button layout, the test is successful.

Actual result BEFORE applying this Pull Request

Firstly, create a module that uses button layout from a component
Earlier, you were unable to access the component button layout.

Expected result AFTER applying this Pull Request

after the commit, you will be able to access the component button layout.

Documentation Changes Required

No major changes required

avatar akshitrattan akshitrattan - open - 12 Jan 2022
avatar akshitrattan akshitrattan - change - 12 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jan 2022
Category Libraries
avatar akshitrattan akshitrattan - change - 12 Jan 2022
Labels Added: ?
avatar akshitrattan akshitrattan - change - 12 Jan 2022
The description was changed
avatar akshitrattan akshitrattan - edited - 12 Jan 2022
avatar HLeithner
HLeithner - comment - 27 Jun 2022

This pull request has automatically rebased to 4.2-dev.

avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar HLeithner HLeithner - change - 27 Jun 2022
Labels Added: ?
avatar HLeithner
HLeithner - comment - 2 May 2023

This pull request has been automatically rebased to 4.3-dev.

avatar obuisard
obuisard - comment - 21 Jun 2023

Thank you Akshit @akshitrattan for this PR.
I have asked the maintainers about the implementation and it looks like it would be best to make it similar to the FormField class and call getRenderer()

protected function getRenderer($layoutId = 'default')
(thank you Fedir @Fedik)

avatar obuisard obuisard - change - 21 Jun 2023
Title
FileLayout instantiation limitation in ToolbarButton::renderButton() removed
[5.0] FileLayout instantiation limitation in ToolbarButton::renderButton() removed
avatar obuisard obuisard - edited - 21 Jun 2023
avatar HLeithner
HLeithner - comment - 5 Oct 2023

@BrainforgeUK can you give an example code how this should work? wouldn't it be enough to add options to the renderButton option array which can be used for the basePath and the options on FileLayout?

avatar HLeithner
HLeithner - comment - 5 Oct 2023

also pining @akshitrattan

avatar HLeithner
HLeithner - comment - 24 Apr 2024

This pull request has been automatically rebased to 5.2-dev.

avatar HLeithner HLeithner - change - 24 Apr 2024
Title
[5.0] FileLayout instantiation limitation in ToolbarButton::renderButton() removed
[5.2] FileLayout instantiation limitation in ToolbarButton::renderButton() removed
avatar HLeithner HLeithner - edited - 24 Apr 2024
avatar HLeithner
HLeithner - comment - 2 Sep 2024

This pull request has been automatically rebased to 5.3-dev.

avatar HLeithner HLeithner - change - 2 Sep 2024
Title
[5.2] FileLayout instantiation limitation in ToolbarButton::renderButton() removed
[5.3] FileLayout instantiation limitation in ToolbarButton::renderButton() removed
avatar HLeithner HLeithner - edited - 2 Sep 2024
avatar HLeithner
HLeithner - comment - 4 Mar 2025

This pull request has been automatically rebased to 6.0-dev.

avatar HLeithner HLeithner - change - 4 Mar 2025
Title
[5.3] FileLayout instantiation limitation in ToolbarButton::renderButton() removed
[6.0] FileLayout instantiation limitation in ToolbarButton::renderButton() removed
avatar HLeithner HLeithner - edited - 4 Mar 2025

Add a Comment

Login with GitHub to post a comment