? ? ? Pending

User tests: Successful: Unsuccessful:

avatar AndySDH
AndySDH
26 Feb 2021

Follow-up Pull Request after #32448

Summary of Changes

After updating the article view with the above-mentioned PR, this PR updates all the other views as well to show the component title as H1 when the Menu Title is hidden.

In particular this updates the following views:

  • Contact Default
  • Content Category Default
  • Content Category Blog
  • Newsfeed Category
  • Tag Default
  • Tag List

In addition, when doing this, I stumbled upon an unused page_subheading param that was present in the 'featured' views and the 'category blog' views. This looks to be an outdated and out of place parameter that was present just in those two views and nowhere else. I don't think nobody has even ever used it.

So this also addresses issue #29586, removing the page_subheading parameter in those views, making them consistent with all the other views as well.

Actual result BEFORE applying this Pull Request

Components title is H2.

Expected result AFTER applying this Pull Request

Components title is H1 when Menu Title is hidden.

avatar AndySDH AndySDH - open - 26 Feb 2021
avatar AndySDH AndySDH - change - 26 Feb 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Feb 2021
Category Front End com_contact com_content com_newsfeeds com_tags Layout Plugins
avatar AndySDH AndySDH - change - 26 Feb 2021
The description was changed
avatar AndySDH AndySDH - edited - 26 Feb 2021
avatar richard67
richard67 - comment - 26 Feb 2021

@AndySDH So this PR solves that issue #29586 ?

avatar AndySDH
AndySDH - comment - 26 Feb 2021
avatar AndySDH
AndySDH - comment - 26 Feb 2021

@AndySDH So this PR solves that issue #29586 ?

Yeah, addresses that too as explained above. I opted to just remove the parameter as it was widely inconsistent and out of place (especially in the blog view). I don't think nobody has even ever used it.

avatar richard67
richard67 - comment - 26 Feb 2021

Yeah, addresses that too as explained above :)

@AndySDH Yes, but to address and to solve it is not 100 % the same thing, so I asked to be sure. Thanks for reporting back, and thanks for your contributions so far, it's really appreciated.

avatar AndySDH AndySDH - change - 26 Feb 2021
The description was changed
avatar AndySDH AndySDH - edited - 26 Feb 2021
avatar AndySDH AndySDH - change - 26 Feb 2021
Labels Added: ?
avatar AndySDH AndySDH - change - 26 Feb 2021
Title
Updating all views to use H1 for Component Title when Menu Title hidden
[4.0] Updating all views to use H1 for Component Title when Menu Title hidden
avatar AndySDH AndySDH - edited - 26 Feb 2021
avatar AndySDH AndySDH - change - 26 Feb 2021
Title
[4.0] Updating all views to use H1 for Component Title when Menu Title hidden
[4.0] Updating all views to use H1 for Component Title when Menu Title is hidden
avatar AndySDH AndySDH - edited - 26 Feb 2021
avatar joomla-cms-bot joomla-cms-bot - change - 26 Feb 2021
Category Front End com_contact com_content com_newsfeeds com_tags Layout Plugins Front End com_contact com_content com_newsfeeds com_tags Language & Strings Layout Plugins
avatar AndySDH AndySDH - change - 26 Feb 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 26 Feb 2021
Category Front End com_contact com_content com_newsfeeds com_tags Layout Plugins Language & Strings Administration Language & Strings Front End com_contact com_content com_newsfeeds com_tags Layout Plugins
avatar himanshu007-creator himanshu007-creator - test_item - 28 Feb 2021 - Tested successfully
avatar himanshu007-creator
himanshu007-creator - comment - 28 Feb 2021

I have tested this item successfully on 970c03d

I opened the Contact default view. Before applying the patch title was having h2 tag, after patch, it was h1.


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

avatar particthistle particthistle - test_item - 1 Mar 2021 - Tested unsuccessfully
avatar particthistle
particthistle - comment - 1 Mar 2021

I have tested this item ? unsuccessfully on 970c03d

See next comment and review.


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

avatar particthistle
particthistle - comment - 1 Mar 2021

I have tested this item ? unsuccessfully on 970c03d

See next comment and review.


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

avatar infograf768
infograf768 - comment - 1 Mar 2021

This one also needs changes:

'params' => '{"layout_type":"blog","show_category_heading_title_text":"","show_category_title":"",'
. '"show_description":"","show_description_image":"","maxLevel":"","show_empty_categories":"",'
. '"show_no_articles":"","show_subcat_desc":"","show_cat_num_articles":"","show_cat_tags":"",'
. '"page_subheading":"","num_leading_articles":"1","num_intro_articles":"3",'
. '"num_links":"0","show_subcategory_content":"","orderby_pri":"",'
. '"orderby_sec":"front","order_date":"","show_pagination":"2","show_pagination_results":"1",'
. '"show_featured":"","show_title":"","link_titles":"","show_intro":"","info_block_position":"",'
. '"info_block_show_title":"","show_category":"","link_category":"","show_parent_category":"",'
. '"link_parent_category":"","show_associations":"","show_author":"","link_author":"",'
. '"show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"",'
. '"show_vote":"","show_readmore":"","show_readmore_title":"","show_hits":"","show_tags":"",'
. '"show_noauth":"","show_feed_link":"1","feed_summary":"","menu-anchor_title":"","menu-anchor_css":"",'
. '"menu_image":"","menu_image_css":"","menu_text":1,"menu_show":1,"page_title":"","show_page_heading":"1",'
. '"page_heading":"","pageclass_sfx":"","menu-meta_description":"","robots":""}',

would also be modified to include the changes as done in #32550

avatar AndySDH
AndySDH - comment - 1 Mar 2021

@AndySDH - working through testing all the scenarios (@himanshu007-creator - will chat in Glip about improving the level of detail for your testing) and found a syntax error that breaks the Blog Category Layout when the patch is applied.

Aside from that, all the other scenarios look to have worked correctly, so will be able to retest quickly when this has been fixed up as I've got all the menu items for the different scenarios saved and ready to go.

Whoops, sorry, thanks for reporting this! It's now fixed.

How did the auto-check not automatically spot this?

avatar particthistle
particthistle - comment - 1 Mar 2021

@AndySDH, take a look at @infograf768 suggest change needed for the sample data.

#32550 is being worked on concurrently, but it's taking care of the default install. The Sample Data has the same problem that PR is looking to fix, which is that the sample data has J3 parameters not J4 parameters. Just going to see if I can work out what needs to go in there quickly to speed up the change for you.

Once that's also fixed I'll then retest also with a new install + sample data install.

avatar particthistle
particthistle - comment - 1 Mar 2021

Changes to match up #32550. Part 2.

It stopped letting me add reviews to the code after line 862 for some reason. There's one more line needing adjustment to match up the changes outlined in #32550.

Line 864 - remove show_associations parameter: New line:
. '"link_parent_category":"","show_author":"","link_author":"",'

@AndySDH Ignore this per @infograf768 comment below.

avatar infograf768
infograf768 - comment - 2 Mar 2021

show_associations should stay as it is a blog parameter (Options).

Screen Shot 2021-03-02 at 11 10 03

avatar AndySDH
AndySDH - comment - 3 Mar 2021

Thanks for the feedback, I'll wait for #32550 to be finalized and merged, and once that's merged, I'll make sure to have the same version of those files in this PR as well.

avatar ceford
ceford - comment - 10 Mar 2021

#32550 is marked as merged - so is this ready for testing?


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

avatar richard67
richard67 - comment - 10 Mar 2021

@ceford I think maybe @AndySDH wants to update his branch first to latest 4.0-dev so it contains the changes from the merged PR, too. Let's see what he replies.

avatar AndySDH AndySDH - change - 10 Mar 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 10 Mar 2021
Category Front End com_contact com_content com_newsfeeds com_tags Layout Plugins Language & Strings Administration Administration Language & Strings Front End com_contact com_content com_newsfeeds com_tags SQL Installation Layout Plugins
avatar joomla-cms-bot joomla-cms-bot - change - 10 Mar 2021
Category Front End com_contact com_content com_newsfeeds com_tags Layout Plugins Language & Strings Administration SQL Installation Administration Language & Strings Front End com_contact com_content com_newsfeeds com_tags SQL Installation Postgresql Layout Plugins
avatar AndySDH
AndySDH - comment - 10 Mar 2021

Resolved conflicts with #32550 :)

avatar particthistle particthistle - test_item - 15 Mar 2021 - Tested unsuccessfully
avatar particthistle
particthistle - comment - 15 Mar 2021

I have tested this item ? unsuccessfully on 0f22848

1. Syntax error with Blog Category Layout fixed from previous test, so this part was successful.

  1. Additional changes were suggested for plugins/sampledata/multilang/multilang.php but have not been applied, so the parameters don't match #32550.

#32525 (comment) - Add . '"blog_class_leading":"","blog_class":"",' before line 859.
#32525 (comment) - Add "link_intro_image":"", at 860
#32525 (comment) - Add "article_layout":"_:default", at 862


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32525.
avatar AndySDH AndySDH - change - 15 Mar 2021
Labels Removed: ?
avatar AndySDH
AndySDH - comment - 15 Mar 2021

@particthistle Done, thanks!

avatar particthistle particthistle - test_item - 16 Mar 2021 - Tested successfully
avatar particthistle
particthistle - comment - 16 Mar 2021

I have tested this item successfully on e94a87a

Thanks @AndySDH

avatar chmst
chmst - comment - 21 Mar 2021

Concerning subheading: It was used in 3.9 https://issues.joomla.org/tracker/joomla-cms/30422


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

avatar AndySDH
AndySDH - comment - 21 Mar 2021

Concerning subheading: It was used in 3.9 https://issues.joomla.org/tracker/joomla-cms/30422

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

I'm aware but it was used present only in 1 view (2 if you count Featured view), and absent in all the others. It was wildly inconsistent and I felt it served not much of a purpose. So I thought it made it sense to clean it up and remove it.

avatar particthistle
particthistle - comment - 22 Mar 2021

Subheading removal: Should it go ahead (I don't know anyone using it, but I'm sure there may be) do we just need to make sure it's listed here: https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4

If so, add Documentation Required tag for follow up.

avatar himanshu007-creator himanshu007-creator - test_item - 17 Apr 2021 - Tested successfully
avatar himanshu007-creator
himanshu007-creator - comment - 17 Apr 2021

I have tested this item successfully on e94a87a

Tested the behavior on all mentioned categories. Thanks @particthistle for helping out earlier.


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

avatar richard67 richard67 - alter_testresult - 17 Apr 2021 - particthistle: Tested successfully
avatar richard67 richard67 - alter_testresult - 17 Apr 2021 - himanshu007-creator: Tested successfully
avatar richard67
richard67 - comment - 17 Apr 2021

I've allowed myself to solve the merged conflict and restored the previous test results because the merge after that for resolving the merge conflict was only a code style change.

avatar richard67 richard67 - change - 17 Apr 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 17 Apr 2021

RTC


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

avatar AndySDH
AndySDH - comment - 17 Apr 2021

Thanks @richard67

avatar chmst chmst - change - 17 Apr 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-04-17 15:19:07
Closed_By chmst
Labels Added: ?
avatar chmst chmst - close - 17 Apr 2021
avatar chmst chmst - merge - 17 Apr 2021
avatar chmst
chmst - comment - 17 Apr 2021

Thanks!

Add a Comment

Login with GitHub to post a comment