? ? Pending

User tests: Successful: Unsuccessful:

avatar RickR2H
RickR2H
16 Feb 2022

Pull Request for Issue # .

Summary of Changes

In the category blog, featured blog, Cassiopeia module chromes there are empty spaces if no class is applied. This PR removes those spaces

Testing Instructions

  1. Install Joomla with the demo blog content
  2. Go to the homepage menu item "Home" and make sure to remove "Leading Article Classes" and "Article Classes"
  3. Set "# Leading Articles" and "# Intro Articles" both to 1
  4. Go to the homepage and see if the spaces are there
  5. Apply the patch an see if the spaces are gone
  6. Next apply classes an see if the required space is added
    blog-layout

Do the same as above with the menu item "Blog" in the "Main Menu Blog" menu

Image8

The frontend module "Latest Posts" also has an empty space in the class name
The module uses the "Module Style" noCard

image

After applying the patch this space is gone.
Also try to add a module class suffix and see if the required space is added.

Next switch the "Module Style" to card
In the same place is also a space
image

Actual result BEFORE applying this Pull Request

There are spaces

Expected result AFTER applying this Pull Request

Spaces only applied if there is a class present

Documentation Changes Required

No

avatar RickR2H RickR2H - open - 16 Feb 2022
avatar RickR2H RickR2H - change - 16 Feb 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Feb 2022
Category Front End com_content Templates (site)
avatar RickR2H RickR2H - change - 16 Feb 2022
The description was changed
avatar RickR2H RickR2H - edited - 16 Feb 2022
avatar RickR2H RickR2H - change - 16 Feb 2022
Labels Added: ?
avatar RickR2H RickR2H - change - 16 Feb 2022
The description was changed
avatar RickR2H RickR2H - edited - 16 Feb 2022
avatar MSnoeren MSnoeren - test_item - 17 Feb 2022 - Tested successfully
avatar MSnoeren
MSnoeren - comment - 17 Feb 2022

I have tested this item successfully on 7c43394


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

avatar RickR2H
RickR2H - comment - 17 Feb 2022

@MSnoeren please test again when the build is completed. Make sure the classes work.

avatar RickR2H
RickR2H - comment - 18 Feb 2022

@MSnoeren please test again

avatar MUX-ON-WINDOWS MUX-ON-WINDOWS - test_item - 18 Feb 2022 - Tested successfully
avatar MUX-ON-WINDOWS
MUX-ON-WINDOWS - comment - 18 Feb 2022

I have tested this item successfully on 3d80f3e

I have tested this item successfully


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

avatar Quiviro Quiviro - test_item - 18 Feb 2022 - Tested successfully
avatar Quiviro
Quiviro - comment - 18 Feb 2022

I have tested this item successfully on 3d80f3e


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

avatar richard67 richard67 - alter_testresult - 21 Feb 2022 - MUX-ON-WINDOWS: Tested successfully
avatar richard67 richard67 - alter_testresult - 21 Feb 2022 - Quiviro: Tested successfully
avatar richard67
richard67 - comment - 21 Feb 2022

I've restored the previous test results in the issue tracker since the commit after that was just a code style change (removal of an empty line).

avatar richard67 richard67 - change - 21 Feb 2022
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 21 Feb 2022

RTC


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

avatar RickR2H
RickR2H - comment - 21 Feb 2022

@richard67 Thanks!

avatar bembelimen
bembelimen - comment - 21 Feb 2022

Puhh, tbh I don't know....running a PHP function just for removing this spaces? It probably has only minor impact on performance, but I don't see the real benefit here.

avatar RickR2H
RickR2H - comment - 21 Feb 2022

Removing the spaces is cleaner and makes selecting html elements by css wildcard selectors easier. We could go back to the if then short hand which removes the function.

avatar RickR2H
RickR2H - comment - 21 Feb 2022

Other advantage is that classes are inserted without spaces. The old way of inserting classes was to add a leading space. With this PR this problem is solved.

avatar laoneo laoneo - change - 25 Feb 2022
Labels Added: ?
avatar bembelimen
bembelimen - comment - 11 Mar 2022

After talking with several people I still think the benefit does not outweight all the negative points like added complexity, more PHP in html environment, server resources etc. So I'll close this one.

Thank you for your contribution.

avatar bembelimen bembelimen - change - 11 Mar 2022
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2022-03-11 19:09:41
Closed_By bembelimen
avatar bembelimen bembelimen - close - 11 Mar 2022

Add a Comment

Login with GitHub to post a comment