Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.2.0 rc1] Articles Module - Setting to Columns to 3 or 4 Only Displays 2 using Cassiopeia #44186

Closed
sdwjoomla opened this issue Oct 2, 2024 · 13 comments

Comments

@sdwjoomla
Copy link
Contributor

sdwjoomla commented Oct 2, 2024

Steps to reproduce the issue

  • Set template style to Cassiopeia
  • A module should be published in the sidebar
  • Create a new module of type Articles
  • Set the Max Number of Columns to 3 or 4
  • Assign module to a position such as main-bottom

Expected result

3 or 4 columns of content
The number of articles present on the screen

Actual result

2 columns display no matter if 3 or 4 selected
Image
Image

System information (as much as possible)

5.2.0-rc1
PHP 8.2.23
Template Cassiopeia

Additional comments

@brianteeman
Copy link
Contributor

#43738 (comment)

@dautrich
Copy link

dautrich commented Oct 4, 2024

This might be the designed behavior, if we assume a minimum width for a column in the new Articles module. But to be honest, I didn't check the code.
If you set Cassiopeia to a fluid layout and use a large viewport, the configured 3 or 4 columns are in fact displayed.

@brianteeman
Copy link
Contributor

yes it is the designed behaviour even if it is confusing and not documented

@paternax
Copy link

paternax commented Oct 4, 2024

It would be best, when the field "Max. Number of Columns" would be deactived if the Template - Layout ist set to static.
There should be a hint in the inline help which explains the dependencies between layout type in the template options and columns in the module.

@chmst
Copy link
Contributor

chmst commented Oct 4, 2024

From usabilty point of view this is not sufficient. Not self-explaining. If a user changes the template layout to fluid for mod_articles he can destroy his site.
Can we find a solution without grid?

@dautrich
Copy link

dautrich commented Oct 4, 2024

@paternax

It would be best, when the field "Max. Number of Columns" would be deactived if the Template - Layout ist set to static. There should be a hint in the inline help which explains the dependencies between layout type in the template options and columns in the module.

Why would you want to deactivate the field for a static layout? I don't see a reasonable argument for that.
The bigger issue is the lack of inline help, describing the different options and their interferences,

@brianteeman
Copy link
Contributor

The bigger issue is the lack of inline help, describing the different options and their interferences,

No the bigger issue is that it doesnt work how you would expect it to work. If you have to write an explanation of why something doesnt work then you are just proving that the code is wrong

@dautrich
Copy link

dautrich commented Oct 5, 2024

My comment wasn't about bad functionality. I like the new module with its multipurpose approach.

@drmenzelit
Copy link
Contributor

It is always difficult to take all possibilities into account. That is why I named the field "Max. number of columns", it would be not more than 3, but it can be less ;-) If someone has a better solution, please let me know.
A documentation of the module is in work.

@drmenzelit
Copy link
Contributor

https://docs.joomla.org/Help5.x:Site_Modules:_Articles

@aefferenpriv
Copy link

aefferenpriv commented Dec 29, 2024

I just upgraded to 5.2 as well and now my home menu on main page can't show 4 columns of articles anymore. New created menus have same issue. Former created menus do not have this issue. Based on the hints provided I can't get it corrected. See www.rabbitdesign.nl. Home screen articles is 'a mess'. when you select from left menu i.e. 1977 it shows how it was in the home menu as well. Same goes for 2023 also oke. Today I created menu 2024 an exact copy of 2023 and it shows same behavior as the home page. Any hints where to look to fix this? I can't find anymore where the width of the main area in the Cassiopeia template is set. I read in the link provided by brianteeman that below 992p the number of columns get reduced.

@drmenzelit
Copy link
Contributor

drmenzelit commented Dec 29, 2024

@aefferenpriv your problem is not related with this already solved issue. You should better ask in the forum (forum.joomla.org), but from a short check of your site, I think the second article (42165 - Mercedes-AMG F1 W14 E Performance Pull-Back) contains some div elements that are interfering with the display of the columns.

@aefferenpriv
Copy link

aefferenpriv commented Dec 29, 2024

@drmenzelit my apologies, I will turn to the joomla forum. Anyway thanks for your hint. Much appreciated. Strange though because I use Joomla and Cassiopeia vanilla to avoid such problems.
However I checked. I am impressed!! it is fixed!. I made a copy-paste error.
Thanks a lot.

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

No branches or pull requests

8 participants