?
avatar Twincarb
Twincarb
25 Nov 2017

Steps to reproduce the issue

Create a couple of custom modules and assign to the same position (Footer is as good as any)
Under the advanced tab change the module size using the Bootstrap Size selector.

Expected result

modules should display in a row with the correct size selected from the dropdown
html output is class="col-3" (if the size selected was 3

Actual result

html output is class="span3" (if the size selected was 3

System information (as much as possible)

Joomla 4Alpha
xammp

Additional comments

I believe that https://github.com/joomla/joomla-cms/blob/4.0-dev/templates/system/html/modules.php line 28 needs updating from
[code]$moduleClass = $bootstrapSize !== 0 ? ' span' . $bootstrapSize : '';[/code]
to
[code]$moduleClass = $bootstrapSize !== 0 ? ' col-' . $bootstrapSize : '';[/code]

I am not sure if this is the only change that's needed, if so I am happy to open a PR

avatar Twincarb Twincarb - open - 25 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Nov 2017
avatar Bakual
Bakual - comment - 25 Nov 2017

The parameter would need to be recognised by the template (Cassiopeia) module chromes as well, But to my knowledge it got stripped out. The parameter likely gets removed completely.
I haven't tried yet, but I think you should be able to write the class as a module class (suffix) and get the same result.

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Nov 2017
Status New Discussion
avatar ciar4n
ciar4n - comment - 26 Nov 2017

As mentioned by @Bakual, the Bootstrap field is been removed. The field itself still exists temporarily for the backend template. Module sizes will be set via a module class. A PR for a possible implementation of this is currently open (#18516).

avatar Twincarb
Twincarb - comment - 26 Nov 2017

Thanks for the responses, I presume this can be closed when there is a PR for the removal of the Bootstrap size box.
@ciar4n I am having a look at #18516 now ?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18866.

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Nov 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-11-26 10:06:21
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 26 Nov 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 26 Nov 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 26 Nov 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Nov 2017

closed as stated above.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18866.

avatar Twincarb
Twincarb - comment - 26 Nov 2017

@franz-wohlkoenig we don't have a PR for the removal of the bootstrap size yet.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18866.

avatar brianteeman
brianteeman - comment - 26 Nov 2017

Re-opening.

avatar brianteeman brianteeman - change - 26 Nov 2017
Status Closed New
Closed_Date 2017-11-26 10:06:21
Closed_By joomla-cms-bot
avatar brianteeman brianteeman - reopen - 26 Nov 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Nov 2017

@Twincarb misread your Comment, sorry.

avatar C-Lodder
C-Lodder - comment - 26 Nov 2017

I'll do a PR now. Do we want it removed completely, or just for front-end modules? @ciar4n

I'm thinking remove it completely and use column-count for the dashboard modules. Already removed masonry in another PR

avatar Bakual
Bakual - comment - 26 Nov 2017

Personally, I would do it the same in front- and backend. I don't see a reason to differentiate. If the reason is the different template architecture from front- and backend, then think a second time about it ?

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Nov 2017
Status New Discussion
avatar ciar4n
ciar4n - comment - 26 Nov 2017

Yes I'd say remove from both frontend and backend. AFAIK the only location this field is used in the backend is with the dashboard. It would be quite easy to implement #18516 in the dashboard or indeed use column-count if we wish a masonry style layout.

avatar C-Lodder
C-Lodder - comment - 26 Nov 2017

Cool. Will finish off PR tomorrow

avatar C-Lodder
C-Lodder - comment - 2 Dec 2017

PR: #18957

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Dec 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-12-02 15:04:43
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 2 Dec 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 2 Dec 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 2 Dec 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Dec 2017

closed as having Pull Request #18957

Add a Comment

Login with GitHub to post a comment