Skip to content

Load module by id should also get the style#25072

Closed
yozmag wants to merge 5 commits intojoomla:3.10-devfrom
yozmag:patch-1
Closed

Load module by id should also get the style#25072
yozmag wants to merge 5 commits intojoomla:3.10-devfrom
yozmag:patch-1

Conversation

@yozmag
Copy link
Copy Markdown

@yozmag yozmag commented May 31, 2019

loadmoduleid plugin keyword changed to get the module chrome style.

Pull Request for Issue # .

Summary of Changes

Changed to allow the chrome style with loadmoduleid keyword

Testing Instructions

Expected result

The chrome style should change if the plugin parameter changes or a 2nd argument is defined.

Actual result

Nothing changes always the none chrome is render.

Documentation Changes Required

loadmoduleid plugin keyword changed to get the module chrome style.
Comment thread plugins/content/loadmodule/loadmodule.php
Comment thread plugins/content/loadmodule/loadmodule.php Outdated
Comment thread plugins/content/loadmodule/loadmodule.php Outdated
Comment thread plugins/content/loadmodule/loadmodule.php Outdated
Comment thread plugins/content/loadmodule/loadmodule.php
yozmag and others added 4 commits May 31, 2019 14:25
Co-Authored-By: ReLater <ReLater@users.noreply.github.com>
Co-Authored-By: ReLater <ReLater@users.noreply.github.com>
Co-Authored-By: ReLater <ReLater@users.noreply.github.com>
Co-Authored-By: ReLater <ReLater@users.noreply.github.com>
@brianteeman
Copy link
Copy Markdown
Contributor

Won't this impact existing sites?

@ReLater
Copy link
Copy Markdown
Contributor

ReLater commented May 31, 2019

And isn't it a new feature that won't go into Joomla 3? I'm not sure because pr is for Joomla 3.10 branch.

@yozmag
Copy link
Copy Markdown
Author

yozmag commented May 31, 2019

If a site now uses loadmoduleid it loads the 'none' chrome'. If the parameter on the plugin is different option '-1' https://docs.joomla.org/Understanding_Output_Overrides#Module_Chrome the plugin is going to render the chrome select in the plugin parameter instead of 'none' and will impact the render of the module.
This Pr should go to 3.10 version or next 3.9... Thanks.

@ReLater
Copy link
Copy Markdown
Contributor

ReLater commented May 31, 2019

This Pr should go to 3.10 version or next 3.9... Thanks.

I think your pr is a new feature and not a bug fix. New features won't go into Joomla 3. You have to rebase it to Joomla 4.

But let's decide the 3.9 Release Lead @HLeithner

@HLeithner
Copy link
Copy Markdown
Member

It's seams not to be a b/c break but a new feature, so sry please rebase of J4.

@HLeithner HLeithner closed this May 31, 2019
@yozmag
Copy link
Copy Markdown
Author

yozmag commented May 31, 2019

I think this is a bug because the parameter is on the plugin is not taken to account when render the module like with keyword {loadposition xxxx} and {loadmodule xxxx} the styles (modChrome_style) is working. Also adding the style as parameter also works as described in joomla documentation . The load {loadmoduleid xx} was added feature on the 3.9 this doesn't make sense not to make correct only on J4, and J3. stays with the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants